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
Error on FlightRecorderCurrent.trc.<wbr />
Default "reply to " in Exchange 2003 always resets to User network logon
Retrieve most current records
Download Multiple Files
VB.NET to Excel - setting orientation to landscape
Windows 2003 AD 169 IP Address NS Lookup
cant use imageOpened
Disabling User access control in server 2008
Reset Powerpoint hyperlinks
Next Access Version Features