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
SCCM Bare Metal installing Windows on wrogn drive
Forcing 32-bit VB.NET mode on 64-bit machine
Header Row Don't move
Windows can not check for updates Code 800710DD
Sending Message on LAN
Expression to Handle the ZERO
How do I change server 2003 Computer(Machine) certificate validity to more than one year?
ISA
Formula in Data Validation not giving error when "false"
Windows SharePoint Services errors (error codes 6398, 7076, 6482)