Microsoft
Software
Hardware
Network
Question : Excel marco (close excel file and auto rename)
Hi,
How can i command vba , when i close excel file and then execute the following command.
Sub SaveFile()
ThisWorkbook.SaveAs "D:\BACKUP\" & "SN" & Sheet1.Cells(2, 8).Text & ".xls"
End Sub
Regards
Stanley
Answer : Excel marco (close excel file and auto rename)
Use 'BeforeClose' event of workbook.
Private Sub Workbook_BeforeClose(Cance
l As Boolean)
Call SaveFile
End Sub
Random Solutions
Extend reset password time
Determine which WAN Connection to use?
Office XP Key retrieval
WSS 3.0 migrate site from development machine to production server - Best practices
Too many indexes
Getting ODBC general error on command refresh background query
set isql output file format
Automatic resizing of forms and text boxes
Why does GetModuleFileName return long names sometimes, and mangled names sometimes (WinNT)?
How can I successfully install .NET FrameworK 2.0?