Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to open workbook from template without hardcoding
Could anyone tell me how to open a workbook from another workbook, where
both files are in the same folder, without hardcoding the path. I have tried code like this without success. Workbooks.open (path & "\somefile.xls") |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to open workbook from template without hardcoding
Michael Turner wrote:
Could anyone tell me how to open a workbook from another workbook, where both files are in the same folder, without hardcoding the path. I have tried code like this without success. Workbooks.open (path & "\somefile.xls") Have you tried Workbooks.open ("somefile.xls") -- Steve Garman |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to open workbook from template without hardcoding
You can use this
ThisWorkbook.Path -- Regards Ron de Bruin (Win XP Pro SP-1 XL2002 SP-2) www.rondebruin.nl "Michael Turner" wrote in message ... Could anyone tell me how to open a workbook from another workbook, where both files are in the same folder, without hardcoding the path. I have tried code like this without success. Workbooks.open (path & "\somefile.xls") |
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) | |||
Template Help Task Pane Appears When Workbook Is Open | Excel Discussion (Misc queries) | |||
New button does not open the template workbook set up | Excel Discussion (Misc queries) | |||
how to open workbook without hardcoding path | Excel Programming | |||
open excel workbook from template | Excel Programming |