Auto-run macro after a save-as event

S

Selma Li

Hi,

I am trying to auto run a macro after I save a workbook. I'm picking u
where someone else is left off so I'm having some trouble following
I'll describe the situation and if you have a better sugguest, pleas
let me know. All help is appreciated!

There is an existing VB project that does a certain action. It wil
write data to an Excel spreadsheet and save it as a .xls. What I wan
to do is do some post-saving actions with a macro that I have alread
written in VBA.

I know that there's a auto_open that automatically open macro's upo
opening of a file. Is there any auto_?? that could detect the savin
of a file and run the macro specified?

Since I already developed the macro in VBA and it uses a lot of cel
references to the Excel spreadsheet, I want to link the VB applicatio
with excel. I want to have a template Excel file whch already contain
the VBA macro, have the VB application write to the template file, sav
the file as something else and run the VBA macro contained.

Or is it better to have the module imported to the excel spreadshee
automatically and run that after the save command in the VB script?

Thank you very very much
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

cannot save macro in excel 2
auto run a macro 1
Auto save question 2
Auto Macro and Locked PC 8
Run a Word Macro from Excel VBA 9
Save Macro enabled WB as w/o macro 13
Refresh Macro to run each day? 2
Auto Save 2

Top