Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, Workbook A and workbook B are two excel files in the same directory, and always will be however the location of that directory may change (ie from 'C:\files\excel' to 'D:\programs\data'. In workbook A, I need a macro that will open workbook B. I have tried the workbooks.open filename('workbook B.xls'). However, this only works if the full location of the file is listed and thus does not work when both the files are shifted to the new directory. Can you please help me to open a workbook with a relative reference to the location. Thannks, Simon -- simonhall ------------------------------------------------------------------------ simonhall's Profile: http://www.excelforum.com/member.php...o&userid=30582 View this thread: http://www.excelforum.com/showthread...hreadid=502291 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
reference a closed filed from a cell and formula in an open file | Excel Worksheet Functions | |||
hyperlink - PDF file - relative reference | Excel Worksheet Functions | |||
Linked value to cell in different workbook + Relative File Reference | Excel Discussion (Misc queries) | |||
Using an offset formula for the reference in a relative reference | Excel Worksheet Functions | |||
Formula to get Relative Folder Reference to data in another file? | Excel Worksheet Functions |