Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear All
I have an access application which opens an new excel application in the background ( Set ExcelApp = New Excel.Application) and does it 'stuff' no problem, to keep down the code lines I have use the same 'Public Sub' proceedure with different values to get data from the excel spreadsheet in the background. when I send it to the 'Public Sub' proceedure I use Set ExcelApp = GetObject(, "Excel.Application") to refer to the open excel application. This works OK when I only have 1 instance of excel working. BUT if I already have excel open with another spreadsheet it does not work ( I think it looks at the Excel application already open and not the one I have created in the background). I don't want to put code in the application to close any excel applications before I run my application - does anybody know how I can point to the right Excel application? Look forward to hearing from you all Regards Dave |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Possible to refer to a sheet's object name ? | Excel Worksheet Functions | |||
make camera object refer to dynamic range | Excel Discussion (Misc queries) | |||
How to refer to a cell format code? | Excel Discussion (Misc queries) | |||
refer to the sheets Name property in my code (not what is on the Tab) | Excel Programming | |||
Excel Object in VB when running under scheduler control | Excel Programming |