I have a spreadsheet that when running it has a timer.
Whenever that is running and I open another sheet and editing formula or trying to macro it creates problems every second when the timer ticks over.
If I create a new instance then open stuff do all the new files I open go into the second instance?
I have vba open some workbooks by selecting a cell that contains a hyperlink
How do I get it to open a new instance if timer is running on one of my sheets? But not if it's not?
Im guessing i add this code and merge my open hyperlink code somewhere in where objXL.Workbooks.Add is?
Then some sort of if statement looking to see if Sub ExcelStopWatch () is running?
Cheers
Whenever that is running and I open another sheet and editing formula or trying to macro it creates problems every second when the timer ticks over.
If I create a new instance then open stuff do all the new files I open go into the second instance?
I have vba open some workbooks by selecting a cell that contains a hyperlink
How do I get it to open a new instance if timer is running on one of my sheets? But not if it's not?
Im guessing i add this code and merge my open hyperlink code somewhere in where objXL.Workbooks.Add is?
Then some sort of if statement looking to see if Sub ExcelStopWatch () is running?
VBA Code:
Sub New_Instance_of_Excel()
Dim objXL
Set objXL = CreateObject("Excel.Application")
objXL.Visible = True
objXL.Workbooks.Add
End Sub
Cheers