Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The filename in strFile in this statement:
Workbooks(strFile).Close savechanges:=false can't include the drive and folder names--it's just the name of the file. MC wrote: <<Snipped I guess you can try to close workbook named the same as opened text file, e.g. as below: Workbooks(strFile).Close savechanges:=false HTH Mariusz C NT_SPAM -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Closing file with macro | Excel Discussion (Misc queries) | |||
Macro to Save File to specific location when closing | Excel Discussion (Misc queries) | |||
How to code on Macro on saving and closing a file? | Excel Worksheet Functions | |||
run macro when closing file | Excel Programming |