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
Exchange Send As Mails
Sql CAse in SP
How to show treeview inside combobox
How to create shortcut in Windows XP?
Expression Builder in MS ACCESS
Hierarchy Tree Query
Dynamically Change File Name Property In File Connection Manager
Two different certificates in one domain
The proposed new database owner is already a user or aliased in the database. (Microsoft SQL Server, Error: 15110)
Access Violation From Start Bar