Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Local file read

Hello all,

I am trying to get a macro to open another excel file local to the
worksheet that the macro is in. So far, only absolute paths have
worked.

I have tried "." and "./" in front of the file name, but to no avail.
Is it possible to do this without an absolute path?

Thanks!
-=Al
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Local file read

I guess it depends on how you are trying to use it, but:

? dir(activeworkbook.FullName)
file2.xls
? dir(activeworkbook.Path & "\")
file2.xls
? dir(activeworkbook.Path & "\.")
file2.xls

if I then drag in a .txt file to the same directory as the workbook

? dir(activeworkbook.Path & "\*.txt")
August31.txt



--
Regards,
Tom Ogilvy


"Al" wrote in message
om...
Hello all,

I am trying to get a macro to open another excel file local to the
worksheet that the macro is in. So far, only absolute paths have
worked.

I have tried "." and "./" in front of the file name, but to no avail.
Is it possible to do this without an absolute path?

Thanks!
-=Al



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Local file hyperlinks opening in IE Terry Pinnell Excel Discussion (Misc queries) 0 May 19th 09 08:09 AM
Can not copy the file from server to my local C:\ Frank Situmorang Excel Discussion (Misc queries) 3 July 25th 07 12:40 PM
Hypoerlink to a Local file and emailing the file as an attachment JohnH Excel Discussion (Misc queries) 0 January 2nd 07 06:45 PM
Reference styles and local/non-local formulae - international problems. Alan Howells[_2_] Excel Programming 2 February 24th 04 09:52 AM


All times are GMT +1. The time now is 06:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"