Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to run code as soon as a workbook is opened. I have researched
how to do this, however many people comment on using code in ThisWorkBook, which is suppose to be between Microsoft Excel Objects and Modules in the project explorer. It is not showing there...what am I doing wrong? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In the top left hand corner of the Excel Window there is a green excel icon.
Right click on that Icon and select View Code. This is a short cut to get into the ThisWorkbook Object... HTH "JJ" wrote: I am trying to run code as soon as a workbook is opened. I have researched how to do this, however many people comment on using code in ThisWorkBook, which is suppose to be between Microsoft Excel Objects and Modules in the project explorer. It is not showing there...what am I doing wrong? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jim's shortcut is the quickest way -and I never knew about it!
If you're in the IDE, look in the Project Explorer and for your workbook look in Microsoft Excel Objects. You will see ThisWorkbook there. "JJ" wrote: I am trying to run code as soon as a workbook is opened. I have researched how to do this, however many people comment on using code in ThisWorkBook, which is suppose to be between Microsoft Excel Objects and Modules in the project explorer. It is not showing there...what am I doing wrong? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
workbookopen doesn't function | Excel Discussion (Misc queries) | |||
= How to setup vars when a workbookopen event is launched? | Excel Programming | |||
WorkbookOpen event unpredictable | Excel Programming | |||
WorkbookOpen | Excel Programming | |||
WorkbookOpen() Auto macro | Excel Programming |