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
How do I know what version IIS and IIS management console am I using it.
VBA using Search Worksheet Function to Find Question Marks (Tilde)
WCF Client Proxy Wrapper Configuration Abstraction
VB.Net ERROR Message
SQL
Function to check results
Excel.exe caused a Fatal Exception Error
How can I display a .pdf on my access form?
Excel: restrict certain fields for particular person. Make new top of page for each Division.
C#.NET - decrompress a zip file