Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, How do I make the text import location of a file relative to the location of the workbook? My macro imports a text file 01.txt from the same location the workbook is located: With ActiveSheet.QueryTables.Add(Connection:= _ "TEXT;C:\Project\07 July\01.txt", Destination _ :=Range("C2")) So that I can move the spreadsheet to other folders containing the same named files and it still work? -- rbmcclen ------------------------------------------------------------------------ rbmcclen's Profile: http://www.excelforum.com/member.php...o&userid=36367 View this thread: http://www.excelforum.com/showthread...hreadid=563437 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() bump? Someone surely knows if relative pathnames are possible in macros? -- rbmcclen ------------------------------------------------------------------------ rbmcclen's Profile: http://www.excelforum.com/member.php...o&userid=36367 View this thread: http://www.excelforum.com/showthread...hreadid=563437 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro File Locations | Excel Discussion (Misc queries) | |||
Are relative file locations possible in linking workbooks? | Excel Discussion (Misc queries) | |||
How to write macro that selects relative locations | Excel Worksheet Functions | |||
File locations becoming relative when workbook is emailed by macro | Excel Discussion (Misc queries) | |||
Help Ofc Excel2003 macro locations | Excel Programming |