Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This code does not seem to work for me. Sub NewExcelWindow() Set objexcel = New Excel.Application objexcel.Visible = True End Sub A) As soon as the sub ends, the new excel intance closes also. B) It does not open a workbook inside the new excel intance. Just like Application.ActivateMicrosoftApp xlMicrosoftWord but for a new EXCEL intance. I'd like to open a new workbook on a new intance of EXCEL. PS Why doesn't Application.ActivateMicrosoftApp xlMicrosoftEXCEL work??? It works for Access, word etc... Regards, Michel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have you dimmed "objexcel" as a module level variable? If not it's local
and goes out of existence when the sub ends. -- Jim Rech Excel MVP "MD" wrote in message . .. | | | This code does not seem to work for me. | | Sub NewExcelWindow() | Set objexcel = New Excel.Application | objexcel.Visible = True | End Sub | | A) As soon as the sub ends, the new excel intance closes also. | B) It does not open a workbook inside the new excel intance. | | Just like Application.ActivateMicrosoftApp xlMicrosoftWord but for a new | EXCEL intance. I'd like to open a new workbook on a new intance of EXCEL. | | PS Why doesn't Application.ActivateMicrosoftApp xlMicrosoftEXCEL work??? It | works for Access, word etc... | | Regards, | | Michel | | | | | | |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have now :-)) ... Now the application (new instance of excel) stays
open.... How do I open a new workbook in that instance.? thx, Michel "Jim Rech" a écrit dans le message de ... Have you dimmed "objexcel" as a module level variable? If not it's local and goes out of existence when the sub ends. -- Jim Rech Excel MVP "MD" wrote in message . .. | | | This code does not seem to work for me. | | Sub NewExcelWindow() | Set objexcel = New Excel.Application | objexcel.Visible = True | End Sub | | A) As soon as the sub ends, the new excel instance closes also. | B) It does not open a workbook inside the new excel instance. | | Just like Application.ActivateMicrosoftApp xlMicrosoftWord but for a new | EXCEL instance. I'd like to open a new workbook on a new intance of EXCEL. | | PS Why doesn't Application.ActivateMicrosoftApp xlMicrosoftEXCEL work??? It | works for Access, word etc... | | Regards, | | Michel | | | | | | |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim objexcel as Excel.Application
Sub RunXL Set objexcel = New Excel.Application objexcel.Workbooks.Open "C:\MyFile.xls" objexcel.Visible = True End Sub -- Jim Rech Excel MVP "MD" wrote in message . .. |I have now :-)) ... Now the application (new instance of excel) stays | open.... How do I open a new workbook in that instance.? | | thx, | | Michel | | | | | "Jim Rech" a écrit dans le message de | ... | Have you dimmed "objexcel" as a module level variable? If not it's local | and goes out of existence when the sub ends. | | -- | Jim Rech | Excel MVP | "MD" wrote in message | . .. | | | | | | This code does not seem to work for me. | | | | Sub NewExcelWindow() | | Set objexcel = New Excel.Application | | objexcel.Visible = True | | End Sub | | | | A) As soon as the sub ends, the new excel instance closes also. | | B) It does not open a workbook inside the new excel instance. | | | | Just like Application.ActivateMicrosoftApp xlMicrosoftWord but for a new | | EXCEL instance. I'd like to open a new workbook on a new intance of | EXCEL. | | | | PS Why doesn't Application.ActivateMicrosoftApp xlMicrosoftEXCEL work??? | It | | works for Access, word etc... | | | | Regards, | | | | Michel | | | | | | | | | | | | | | | | |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
ON OPEN VBA Code input incorrectly now excel sheet wont open | New Users to Excel | |||
Opening Excel, Book1 opens, remains open with other workbook open | Excel Discussion (Misc queries) | |||
excel 2003 saved file will not open without a blank workbook open | Excel Discussion (Misc queries) | |||
EXCEL wont open from Explorer, must open EXCEL then find file | Excel Discussion (Misc queries) | |||
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed | Excel Programming |