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
Scripting Problem with IFMEMBER
Excel opens to a gray screen on first launch
Controlling order of columns in cross tab report
MS Access Installation Directory
How to download computer certificate from certificate authority
Com+ Catalog Error, more security related errors
Direct Push not receiving unread emails
SBS 2008 Upgrade from W2003 Domain
KB923723 Jacked up my computers (i think)
where parameters aspx .net page