Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Adding code to workbook_open at runtime

How would one go about adding code to the thisworkbook object at runtime so
that a workbook_open macro is added. I want to be a able to create a
blank workbook, add data to it and then add a workbook_open macro that will
of course run when open. if it is not possible to add code to thisworkbook
object, is there another way to accomplish this. Any ideas? any links to
pages with working with vbaprojects?
thanks,
ben
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Adding code to workbook_open at runtime

http://www.cpearson.com/excel/vbe.htm

that link works fine, I love answering my own questions. :-p thanks anyway
for anyone who looked

"ben" wrote:

How would one go about adding code to the thisworkbook object at runtime so
that a workbook_open macro is added. I want to be a able to create a
blank workbook, add data to it and then add a workbook_open macro that will
of course run when open. if it is not possible to add code to thisworkbook
object, is there another way to accomplish this. Any ideas? any links to
pages with working with vbaprojects?
thanks,
ben

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
Workbook_Open code help Colin Hayes Excel Discussion (Misc queries) 1 April 5th 10 02:13 AM
Deleting Workbook_Open code Paige Excel Discussion (Misc queries) 3 January 31st 06 07:39 PM
Removing Workbook_Open code Tom Ogilvy Excel Programming 0 September 1st 04 09:04 PM
Removing Workbook_Open code GJones Excel Programming 0 September 1st 04 08:57 PM
problem with code in workbook_open event Dominique Schroeder Excel Programming 3 April 7th 04 01:56 AM


All times are GMT +1. The time now is 10:41 AM.

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

About Us

"It's about Microsoft Excel"