Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Trying to close an open workbook that is not the active workbook. It was
opened for reference as a looked but after I obtain the information I need I want to close it. 'working file myFileName = Application.GetOpenFilename("Text Files, *.txt") 'refernce file VMM_FileName = Application.GetOpenFilename("Text Files, *.txt") code here... 'close reference file Workbooks(VMM_FileName).Activate ActiveWorkbook.Close False With this I get Run-time error '9': Subscript out of range Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how i open another sheet in the same workbook without closing? | Excel Discussion (Misc queries) | |||
Keeping program open even when closing workbook | Excel Discussion (Misc queries) | |||
Closing Hidden Workbook when Active Workbook is Closed | Excel Programming | |||
How do I stop Excel from closing the open file each time I open a. | Setting up and Configuration of Excel | |||
closing excel after closing a workbook | Excel Programming |