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
If first character in string is zero, remove it
Simple Update Query
How to unshare Printers & Faxes and Scheduled Tasks
get data from a gridview to a popup window and then update the gridview
MS Access
Setting up MSDE 2000
Utility to convert database
Output and Email file
Can I create a library of user defined functions in access?
Need to kill an application that is auto starting on Windows CE 5.0