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
Using Goal Seek Function in Access
Does anyone know how to create a check in check out Inventory.
'Me.RecordsetClone.FindFir<wbr />st' with 2 criteria
Access file to create a map with links.
T-SQL -- INSERT Statement Continue On Error
wpf property or data trigger
Outlook, search through PST files
How can I Link Access 2003 to SQL 2005 Express through an ODBC when everything is on one PC?
LoadCursorBynum doesn't work
Excel Numbers imported as dates into memo field