Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() I'm using the date code below to close the file but just figured that if the file is renamed this will fail. Is there code that will close the workbook no matter what the filename to overcome this ? Dim exdate As Date exdate = "07/12/2009" If Date exdate Then MsgBox ("Sorry this spreadsheet has expired please use latest version") Application.DisplayAlerts = False Workbooks("Master 09 17.50 VAT.XLS").Close Exit Sub End If -- PSM |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
vlookup on close file | Excel Worksheet Functions | |||
Why do i lose EOMONTH on file close | Excel Worksheet Functions | |||
Everytime i close an excel file, it creates a new backup file | Excel Discussion (Misc queries) | |||
Copy from another file and close automatically | Excel Discussion (Misc queries) | |||
File close excel does not ask me to save changes | Excel Discussion (Misc queries) |