John Davis
Well-known Member
- Joined
- Sep 11, 2007
- Messages
- 3,457
Hello All:
I have a workbook which I use alot. Sometimes it is already Open. However sometimes it is Closed and filed away. I have a macro which is designed too run when the workbook is already open. Is there code which I could use to say if the workbook is Open then activate and run the macro, else Open the workbook and run the macro. I think this can be done, I believe it would require an if statement. I just don't know how to construct this code. Any help would be appreciated.
I have a workbook which I use alot. Sometimes it is already Open. However sometimes it is Closed and filed away. I have a macro which is designed too run when the workbook is already open. Is there code which I could use to say if the workbook is Open then activate and run the macro, else Open the workbook and run the macro. I think this can be done, I believe it would require an if statement. I just don't know how to construct this code. Any help would be appreciated.