LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
dim dim is offline
external usenet poster
 
Posts: 123
Default Find WkBk Path, Then use this path to open another WkBk in Subfold

Hi folks, I'm really hoping someone can help me with this question, it has
two parts.

I have a folder called 'MyProgram', and within it I have a folder called
'Data'. In the MyProgram folder I have the currently active workbook,
'Book1.xls', and in the Data folder I have 'Book2.xls'.

Firstly I need to locate where the currently active workbook Book1.xls is on
the current hard drive? e.g: C:\Program Files\MyFolder...or D:\Example\The
Program\MyFolder etc

Then I need to adapt and use this information in a Workbooks.Open statement
to open Book2.xls in the Data subfolder?

Any help is much appreciated.
 
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
Creating a Hyperlink from 1 WKBK to open another WKBK and activate Barb Reinhardt Excel Programming 10 May 31st 07 06:45 PM
run a procedure in 1 wkbk from another wkbk carenla Excel Programming 1 July 7th 05 05:40 PM
Keep original wkbk open after SaveAs? Ed Excel Programming 2 May 2nd 05 10:12 PM
Open Object as Wkbk opens Myriam Excel Programming 0 April 6th 05 04:07 PM
Error Message Wkbk Open Tom Ulincy[_2_] Excel Programming 1 August 6th 03 04:12 PM


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

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

About Us

"It's about Microsoft Excel"