Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open new session of excel

Status
Not open for further replies.

hoops12

Programmer
Mar 5, 2003
6
CA
Hi. i would like to open a file from a macro but have it open in a new instance of excel. Is this possible?

Thanks
 
Yeah, you can create instances of Excel using:

dim xl as application
set xl=createobject("excel.application")
xl.visible=true
Rob
[flowerface]
 
Hi. I tried inserting this code but the file does not open up ina new excel application..just the one the macro is run from. Is something missing maybe? Thanks.
 
Open the workbook using new instance and all should work:

Set xlWbk=xl.Workbooks.Open("Path\filename.xls")

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top