LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Template Macro Execution

Hi All
I have an Excel application that calls a procedure to load a template file,
populate this new file with copies of the data from the application and then
save the new file as an Excel workbook. All OK so far.

The reason I use a template is that embedded within it is a VBA module that
acts on the data loaded into its sheets that creates some charts and emails
various people. This works OK as well. Except I run this manually after
the first process has run.

I do not want the first process to initiate the template VBA module but
would like it to run after the file has been created. There is a good
reason for this. What methods are open to me?

Can I get a VBA module to be initiated by a before close event, that is
embedded in the template and copied into the output sheet?

I could experiment but I am hoping someone can point me in the right
direction to get it going quicker.

TIA
Cheers
Nigel




----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! 100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
 
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
Macro Execution C Brandt Excel Discussion (Misc queries) 2 July 13th 07 07:23 AM
Triggering Macro Execution Peter M[_3_] Excel Programming 1 January 12th 04 08:20 PM
Screen off during Macro execution CLR Excel Programming 13 December 21st 03 06:04 AM
Restricting Macro Execution John Wilson Excel Programming 1 December 3rd 03 03:43 PM
automatic macro execution Jos reulen Excel Programming 4 November 10th 03 03:10 PM


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