Export file

  • Thread starter Thread starter Guest
  • Start date Start date
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?
 
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.
 
Back
Top