Checking of workbook open

  • Thread starter Thread starter freekrill
  • Start date Start date
F

freekrill

Hi,

I ithink I have read before how to do this, but I can't locate th
informatioin now that I need to use it.

In my code, I wish to activate a workbook (which most of the time wil
already be open), or open and activate it if it is not open.

Can someone tell me what to write?

Cheers
fre
 
Thanks Dick,

My problem is that I know the Workbook exists, I just need to check i
the particular workbook is open.

Thanks
fre
 
Hi Freekrill,

Look at the first comment line in Dick's function:
'Returns True if workbook is open

You may know that the *file* is resident on you drive, but your file only
becomes a workbook - a member of the Workbooks collection - when it is open.
If the workbook is on the drive but is not open, the function will return
False.

In short, use Dick's function to check if the workbook is open
 
Right. Poor choice of names on my part.

--
Dick Kusleika
MVP - Excel
Excel Blog - Daily Dose of Excel
www.dicks-blog.com

Norman Jones said:
Hi Freekrill,

Look at the first comment line in Dick's function:
'Returns True if workbook is open

You may know that the *file* is resident on you drive, but your file only
becomes a workbook - a member of the Workbooks collection - when it is open.
If the workbook is on the drive but is not open, the function will return
False.

In short, use Dick's function to check if the workbook is open
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top