PC Review


Reply
Thread Tools Rate Thread

Current Directory

 
 
MikeH2
Guest
Posts: n/a
 
      19th Feb 2008
How can I determine the current directory I am "pointing to"? Not the
directory that the current file came from but if I were to select File>Open,
what directory would come up. I need to save that location and later come
back to it.
 
Reply With Quote
 
 
 
 
FSt1
Guest
Posts: n/a
 
      19th Feb 2008
hi
sub finddir()
msgbox curdir
end sub

regards
FSt1

"MikeH2" wrote:

> How can I determine the current directory I am "pointing to"? Not the
> directory that the current file came from but if I were to select File>Open,
> what directory would come up. I need to save that location and later come
> back to it.

 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      19th Feb 2008
after thought
sub finddir()
msgbox curdir
range("a1").value = curdir
dim d as string
d = curdir
msgbox d
range("A2").value = d
end sub

"FSt1" wrote:

> hi
> sub finddir()
> msgbox curdir
> end sub
>
> regards
> FSt1
>
> "MikeH2" wrote:
>
> > How can I determine the current directory I am "pointing to"? Not the
> > directory that the current file came from but if I were to select File>Open,
> > what directory would come up. I need to save that location and later come
> > back to it.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change current directory to the directory that the workbook loads from! alondon Microsoft Excel Programming 5 17th Apr 2007 06:05 AM
Current Directory (System.IO.Directory.GetCurrentDirectory throws NotSupportedexeption) Gustavo Curve Microsoft Dot NET Compact Framework 2 17th Feb 2006 02:54 PM
changing current directory to that of the current open file unnameable Microsoft Excel Programming 2 19th May 2004 11:14 AM
Directory starting witht the Current Directory Neeraja Microsoft Excel Worksheet Functions 1 18th Sep 2003 05:40 AM
Re: Directory Structure starting with the Current Directory. Lydya Microsoft Excel Misc 0 17th Sep 2003 12:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:48 AM.