Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi All,
This macro: Sub GetData() With Range("F1:F10") .Formula = "='C:\Documents and Settings\Tim\Desktop\test\[Book1.xls]Sheet1'!A1" .Formula = .Value End With End Sub works fine but i need to change the line: ..Formula = "='C:\Documents and Settings\Tim\Desktop\test\[Book1.xls]Sheet1'!A1" Instead to go to that directory above, to go to the folder test which is in the same path of the excel file being launched. Something like this: ..Formula =ThisWorkbook.Path & "\test\Book1.xls" Any Help is highly appreciated. Tim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula too long - new file path is shorter than old file path - Excel 2003 | Excel Worksheet Functions | |||
In Excel, why does my VB not work when launched from IE ? | Excel Programming | |||
Excel minimizes when a linked file launched | Excel Discussion (Misc queries) | |||
Excel updating from XML file - file path specific? | Excel Discussion (Misc queries) | |||
Can you tell how Excel is launched? | Excel Programming |