Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am referring to workbooks by number (I open a workbook and then refer to
it as workbooks(2). Problem is that when I refer to it, it refers to an invisible workbook that is opening (personal) without my volition. Can anyone tell me hwat's going on? Thanks in advance, kind regards, Mark |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't think I'd ever trust the index into the workbooks collection.
I'd use a variable (or two): dim ActWkbk as workbook dim otherWkbk as workbook set actwkbk = activeworkbook set otherwkbk = workbooks.open(filename:=.....) .... then you can do anything you want by using that variable: otherwkbk.save otherwkbk.close savechanges:=false Mark Stephens wrote: I am referring to workbooks by number (I open a workbook and then refer to it as workbooks(2). Problem is that when I refer to it, it refers to an invisible workbook that is opening (personal) without my volition. Can anyone tell me hwat's going on? Thanks in advance, kind regards, Mark -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Opens Multiple personal.xls | Excel Discussion (Misc queries) | |||
Personal.xls opens when I launch Excel | Excel Discussion (Misc queries) | |||
Clicking on Excel File Only Opens Personal.xls | New Users to Excel | |||
When I open EXCEL my PERSONAL.XLS opens as well !! | New Users to Excel | |||
Personal workbook opens when Excel opens | Excel Discussion (Misc queries) |