Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Access to another excel instance?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Access to another excel instance?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Access to another excel instance?

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - New Instance JMay Excel Discussion (Misc queries) 4 November 28th 09 04:55 PM
How to find a running Excel instance and access the worksheets in it. Gary Luo Excel Programming 2 February 15th 06 05:07 PM
getting extra excel instance when controlling from access VBA Duane Wilson Excel Programming 2 October 14th 05 05:49 AM
How do I access a variable from another instance of excel? Alan Excel Programming 7 June 14th 05 02:31 AM
Second instance of Excel Dom[_2_] Excel Programming 1 August 25th 03 05:37 PM


All times are GMT +1. The time now is 08:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"