A resource for users and developers of Microsoft Excel |
|||||||||
| Email us your FAQ suggestion. |
|||||||||
Visit often ! Pages are updated daily. |
|||||||||
This is the Excel "How to" Frequently Asked Questions page |
|||||||||
Answers to Frequently Asked Questions about how to do common tasks in Microsoft Excel. |
|||||||||
Excel "How to" FAQs |
| How to verify if a certain workbook is open? |
| VBA |
This question of verifying if a certain workbook is open can get very complicated, because it can be asked in terms of considering only your same instance of Excel, or any instance of Excel that may be open, or a network shared drive, or if the workbook is open but in Read Only status because another user opened it first. If your situation involves a network drive or other Excel instances which would require Windows API code, try searching Google for the answer based on the specifics of your situation, or post your question with those specifics on one of the Excel newsgroups. To keep things uncomplicated in this FAQ section, here is an answer to the first and most common scenario, considering if a workbook is open in your current instance of Excel. Function OpenTest(wb) As Boolean Sub OpenOrClosed()
|