Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JJ JJ is offline
external usenet poster
 
Posts: 122
Default WorkbookOpen Event

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default WorkbookOpen Event

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default WorkbookOpen Event

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
workbookopen doesn't function P Westerman via OfficeKB.com Excel Discussion (Misc queries) 0 February 6th 05 05:13 PM
= How to setup vars when a workbookopen event is launched? hcova[_2_] Excel Programming 1 October 21st 04 07:20 PM
WorkbookOpen event unpredictable JT[_5_] Excel Programming 0 September 21st 04 12:47 PM
WorkbookOpen James[_14_] Excel Programming 2 January 30th 04 03:26 PM
WorkbookOpen() Auto macro Richard[_19_] Excel Programming 1 October 10th 03 03:17 PM


All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"