ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   IF wokkbook1 is open, open workbook2 Loop (https://www.excelbanter.com/excel-programming/293545-if-wokkbook1-open-open-workbook2-loop.html)

Fio[_2_]

IF wokkbook1 is open, open workbook2 Loop
 
This is a little odd, but I would like to run a loop until a workbook i
free to write to it ...

I would like multiple users to write to a book - it doesn't matte
which one ... but I don't want them to get any 'wait' 'free to writ
to' share messages if it's active ...

If I have my book (active) , book1 (closed) and book2 (closed) ..
I would like to run a loop until either book1 or book2 are closed the
open the book, write to it, close the book ...

Currently I have -


Tom Ogilvy

IF wokkbook1 is open, open workbook2 Loop
 

http://support.microsoft.com?kbid=138621
XL: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=291295
XL2002: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=213383
XL2000: Macro Code to Check Whether a File Is Already Open

http://support.microsoft.com?kbid=184982
WD97: VBA Function to Check If File or Document Is Open

--
Regards,
Tom Ogilvy



"Fio " wrote in message
...
This is a little odd, but I would like to run a loop until a workbook is
free to write to it ...

I would like multiple users to write to a book - it doesn't matter
which one ... but I don't want them to get any 'wait' 'free to write
to' share messages if it's active ...

If I have my book (active) , book1 (closed) and book2 (closed) ..
I would like to run a loop until either book1 or book2 are closed then
open the book, write to it, close the book ...

Currently I have -





All times are GMT +1. The time now is 06:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com