New instance

B-Man

Board Regular
Joined
Dec 29, 2012
Messages
183
Office Version
  1. 2019
Platform
  1. Windows
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?

VBA Code:
Sub New_Instance_of_Excel()

    Dim objXL

    Set objXL = CreateObject("Excel.Application")

    objXL.Visible = True

    objXL.Workbooks.Add

End Sub


Cheers
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
bump.
cant seem to open excel in new instance. using a hyperlink.
I cant not use a hyperlink as the hyperlink will let any of the pcs open the file. but if I direct link it then it will only work on one pc as the usernames are different hence its a different file path.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top