Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am running an excel-vba which requires the user at a certain point to manually export an excel file from a different software. The problem is that this exported file opens up (automatically - which is how it is supposed to be) in a new excel instance meaning it is not part of workbooks and I can not access it with e.g. 'for each wb in Workbooks'... Is there still some way to work with the exported file? Thx Robin |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
There is no easy access to other instances fo Excel. For one thing you could
have 3 or more instances of Excel going and then which instance were you looking for? You are best off to save the export and then open it in the original instance of Excel... -- HTH... Jim Thomlinson "derobin" wrote: Hi, I am running an excel-vba which requires the user at a certain point to manually export an excel file from a different software. The problem is that this exported file opens up (automatically - which is how it is supposed to be) in a new excel instance meaning it is not part of workbooks and I can not access it with e.g. 'for each wb in Workbooks'... Is there still some way to work with the exported file? Thx Robin |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Robin,
If you know the wb's path and name try somthing like this sFullname = "c:\temp" & "\" & "test.xls" On Error Resume Next Set wb = GetObject(sFullname) If Not wb Is Nothing Then 'etc Regards, Peter T "derobin" wrote in message oups.com... Hi, I am running an excel-vba which requires the user at a certain point to manually export an excel file from a different software. The problem is that this exported file opens up (automatically - which is how it is supposed to be) in a new excel instance meaning it is not part of workbooks and I can not access it with e.g. 'for each wb in Workbooks'... Is there still some way to work with the exported file? Thx Robin |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - New Instance | Excel Discussion (Misc queries) | |||
How to find a running Excel instance and access the worksheets in it. | Excel Programming | |||
getting extra excel instance when controlling from access VBA | Excel Programming | |||
How do I access a variable from another instance of excel? | Excel Programming | |||
Second instance of Excel | Excel Programming |