Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Auto open macros in Excel

I'm trying to create an auto_open macro which saves the workbook being
opened into a certain directory if it hasn't already been saved. I
placed the code in the Workbook_open event in book.xlt and this works
on Workbooks created after I added the code but doesn't run on any
workbooks created before.

I've tried adding the auto_open code in an addin but this only seems
to run when Excel starts up (and the addin opened I guess).

I'm new to Excel programming (experienced in Word programming but
that's it). I've searched the groups and found a lot on auto_open
macros but can't get any to work ... Any help greatly appreciated!!

Cheers,
Tammy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Auto open macros in Excel

Once a workbook is created from a template, it has no more connection to
that template, so any changes you make to the xlt file will not be reflected
in any previously created workbook. There is no accessible attribute in a
workbook that will tell you it was created from a specific template file.

--
Regards,
Tom Ogilvy

"Tammy" wrote in message
om...
I'm trying to create an auto_open macro which saves the workbook being
opened into a certain directory if it hasn't already been saved. I
placed the code in the Workbook_open event in book.xlt and this works
on Workbooks created after I added the code but doesn't run on any
workbooks created before.

I've tried adding the auto_open code in an addin but this only seems
to run when Excel starts up (and the addin opened I guess).

I'm new to Excel programming (experienced in Word programming but
that's it). I've searched the groups and found a lot on auto_open
macros but can't get any to work ... Any help greatly appreciated!!

Cheers,
Tammy



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
Macros - Open an access file from de Excel? Teresa Barrocas Excel Discussion (Misc queries) 1 November 3rd 09 12:53 PM
Can't Open Excel Files with Macros Charles A C Excel Discussion (Misc queries) 1 January 9th 07 03:52 AM
How do I set Excel to auto open a document into a new Window even. dixiebee Excel Worksheet Functions 1 December 15th 04 09:28 PM
Macro Size Limit / open macros with macros? andycharger[_7_] Excel Programming 6 February 13th 04 02:00 PM
invoke macro from outside excel - auto macros nongo Excel Programming 2 October 7th 03 02:28 PM


All times are GMT +1. The time now is 12:25 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"