Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
activating a workbook
it seemed like it should be asy.
here is what i did: CrntCompfile = ActiveWorkbook.FullName Workbooks("CrntCompFile").Activate With or without the quotations, I get a "...subscript out of range..." message. I do not want to use a 'WindowNext.Activate' because the user may have other stuff open. Thansk for any suggestions -- Message posted via http://www.officekb.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
activating a workbook
Hi Almagg,
Try removing the quotes from the variable CrntCompFile. However, why would you seek to activate the active workbook? --- Regards, Norman "Almagg via OfficeKB.com" <u33343@uwe wrote in message news:70cd34632d4c6@uwe... it seemed like it should be asy. here is what i did: CrntCompfile = ActiveWorkbook.FullName Workbooks("CrntCompFile").Activate With or without the quotations, I get a "...subscript out of range..." message. I do not want to use a 'WindowNext.Activate' because the user may have other stuff open. Thansk for any suggestions -- Message posted via http://www.officekb.com |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
activating a workbook
Hi Almagg,
I intended to add that you should replace the Workbook's FullName property with its Name property: --- Regards, Norman |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
activating a workbook
norman
that did it. i thought i had done both, but apparently not. well the user may have excel files open and my code goes thru three workbooks. so i did not want to keep track using 'WindowNext.Activate'. better i just refer to them by name. thanks al -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...mming/200704/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Activating Workbook | Excel Programming | |||
Activating Workbook | Excel Programming | |||
Activating a workbook | Excel Programming | |||
activating a workbook | Excel Programming | |||
Activating a workbook help | Excel Programming |