Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Open Workbook Assignment
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Open Workbook Assignment
Dim wB as Workbook
Set wB = Workbooks.Open("C:\myWork.xls") should work -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Nigel" wrote in message ... Hi All If I create a new workbook, I can assign it to an object variable... Dim wB as Workbook Set wB = Workbooks.Add How can I open an existing workbook and assign it? Dim wB as Workbook Set wB = Workbooks.Open "C:\myWork.xls" Does not work! TIA -- Regards, Nigel |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Open Workbook Assignment
Many thanks Bob, works a treat.
-- Regards, Nigel "Bob Phillips" wrote in message ... Dim wB as Workbook Set wB = Workbooks.Open("C:\myWork.xls") should work -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Nigel" wrote in message ... Hi All If I create a new workbook, I can assign it to an object variable... Dim wB as Workbook Set wB = Workbooks.Add How can I open an existing workbook and assign it? Dim wB as Workbook Set wB = Workbooks.Open "C:\myWork.xls" Does not work! TIA -- Regards, Nigel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to: Open closed workbook/Search data tables/Return data to open workbook | Excel Discussion (Misc queries) | |||
Opening Excel, Book1 opens, remains open with other workbook open | Excel Discussion (Misc queries) | |||
how do i open a data workbook when i open a timesheet workbook | Excel Discussion (Misc queries) | |||
Open a specific workbook...find value from other open workbook and then insert cells values in cell next to it. | Excel Programming | |||
How do you program so that Workbook B cannot be open unless Workbook A is open? Plus I need to validation | Excel Programming |