Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default automatically run startup macro in new workbook

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

--
Regards,
Tom Ogilvy


"GALJohnson" wrote in message
...
I am opening a new workbook in excel from an access macro. I want to save
the excel file as a tab delimited txt file and then exit Excel. I have
written a procedure that will run on startup of an workbook, do the save
and
then exit. But I need it to run in a new workbook.

So I also set it up to just exit if it is not one particular file name.
I
then put it into personal.xla and saved in XLStart directory. Sounds
logical
except that it appears that it runs when personal.xla opens and has
already
finished when the file that I want it to run in opens.

Anybody got any ideas?

Anne

PS I did some fairly decent access programming about 5 years ago, but it
was one major project and I am finding that I have forgotton most of what
I
knew back then (so try to keep it simple for my aging feeble mind).



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
Personal Macro Workbook in startup folder missing Susan Rochon Excel Discussion (Misc queries) 3 September 17th 09 02:44 AM
How to automatically open a set of workbooks on startup ACad2KMan Setting up and Configuration of Excel 2 March 28th 07 01:54 PM
How to execute a macro automatically at startup of Excel? Radim Excel Programming 9 June 29th 06 11:55 AM
How do I automatically import CSV data on startup gyro2222 Excel Programming 1 October 1st 04 01:05 AM


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