LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Finding Current Path

Hi Mike,

Mike C wrote:
Im creating a program that is pulling information from the cd it is
located on. I am running into trouble with the fact that people have
differnt names for their cd drives. I need my program to be able to
tell which drive it is in. I've tryed the CurDir and it only will
give the path that i had originaly on my computer instead of the
present one. I know this is an easy fix but im stuck. Also is there
any way to run a macro upon opening of the program instead of having
to click on a button?


ThisWorkbook.Path should give you what you're looking for. It will return
the path of the workbook in which your code resides.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]

 
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
Current Workbook Path MarkTheNuke Excel Programming 0 February 21st 05 04:33 AM
Current Workbook Path windsurferLA Excel Programming 1 February 19th 05 04:19 PM
Current path to Qualified Path Mary Excel Programming 1 October 14th 04 02:42 PM
path to current file... daschund Excel Programming 1 August 31st 04 11:45 PM
Set The Directory to the Current WB Path Richy Excel Programming 2 February 29th 04 06:54 PM


All times are GMT +1. The time now is 11:16 PM.

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"