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
Need a SSIS walk through help on downloading an Excel file using a url
Extracting data from AS400 into text format -- Date
How to use "IsNull" with varchar datatype?
Identifying Best Price....
.NET Solution With multiple projects
Sending Email From Alias or Distribution Group
Fox 9 and reports creating Variables
Update Temp Recordset using VBA
changing AD login names
Argument not specified for parameter 'sender' of 'Protected Sub EmailRegAttendeeNotices_Cl<wbr />ick(sender<wbr /> As Object, e As System.EventArgs)'.