Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Looping through Excel Applications

Hi Everyone,

I have some code that opens up a workbook in a new instance of Excel. But
before it opens the workbook I want to check to see if it has already been
opened.

So I need to loop through all the open workbooks in all the instances of
Excel - but how do I do this?

Any ideas???

TIA,

big t

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Looping through Excel Applications

Wouldn't it be opened as Readonly if another instance has it open ?

HTH. Best wishes Harald

"big t" skrev i melding
...
Hi Everyone,

I have some code that opens up a workbook in a new instance of Excel. But
before it opens the workbook I want to check to see if it has already been
opened.

So I need to loop through all the open workbooks in all the instances of
Excel - but how do I do this?

Any ideas???

TIA,

big t



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Looping through Excel Applications

It would - but I don't want it to get that far! I want something like this:

- user chooses menu option to open the specified workbook
- code checks to see if it's already open (in any instance of Excel)
- if it's not open then open it in a new instance of Excel
- if it is already open, do nothing

so I still need to check if it's open or not.

cheers
big t


"Harald Staff" wrote:

Wouldn't it be opened as Readonly if another instance has it open ?

HTH. Best wishes Harald

"big t" skrev i melding
...
Hi Everyone,

I have some code that opens up a workbook in a new instance of Excel. But
before it opens the workbook I want to check to see if it has already been
opened.

So I need to loop through all the open workbooks in all the instances of
Excel - but how do I do this?

Any ideas???

TIA,

big t




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
Applications in Excel Snailspace New Users to Excel 5 October 22nd 08 03:39 PM
Can you use VBA forms in different applications (VB app and Excel)??? kuhni Excel Programming 0 August 11th 05 08:05 AM
Applications of Excel in different industries Mary C. Excel Discussion (Misc queries) 2 January 6th 05 05:37 PM
Detecting Applications Run using Excel gr8guy Excel Programming 2 August 16th 04 08:16 AM
Running other applications from Excel VB Mervyn Thomas[_3_] Excel Programming 0 September 8th 03 05:36 PM


All times are GMT +1. The time now is 10:43 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"