Export file

G

Guest

I want to create a macro that is always available in Excel, no matter what
I'm doing, that will export the current active workbook as a file called
"J:\...\export.xls".

What is the best way to do this?
 
T

Tom Ogilvy

in the personal.xls workbook, put in a macro in a general module like

Sub ExportFile()
On Error Resume next
kill "j:\myfolder\export.xls"
On Error goto 0
Activeworkbook.SaveCopyAs "J:\myfolder\export.xls"
End Sub


then you can access it through Tools=>Macro=>Macros. Select Export and hit
run.
 

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


Top