Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
"pikus <" wrote...
Alright, I know what you're asking. Do it like this: foo = ThisWorkbook.Name Workbooks(foo).Worksheets("Sheet1) blah blah blah... And if the OP then runs Workbooks(foo).SaveAs Filename:=SomethingWithDifferentBaseFilename the next time statement referencing Workbooks(foo) will throw a runtime error. Using workbook-type object variables tracks the workbook as long as it's open. -- To top-post is human, to bottom-post and snip is sublime. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Dynamic Hyperlinks - Changing Folders and Filename | Excel Worksheet Functions | |||
Cell("filename") doesn't update to new filename when do save as. | Excel Worksheet Functions | |||
set filename to <filename-date on open | Excel Worksheet Functions | |||
Saving filename same as import filename | Excel Programming | |||
Dynamic Filename From Macro | Excel Programming |