Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
DKS DKS is offline
external usenet poster
 
Posts: 103
Default Capturing current folder path

When clicking on the OPEN dialog box, .xls displays the current "folder
path". How do I programatically capture this current path.

My objective is following:

programatically I will be changing the folder from where to pick up files
and save files. However, when I quit the macro I would like to reset the
folder to the original setting before I started the macro. Hence I would
like to capture the current folder space so that I can revert back to it at
the end.

Many thanks in anticipation of your reply.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Capturing current folder path

Check out CurDir.

NickHK

"DKS" wrote in message
...
When clicking on the OPEN dialog box, .xls displays the current "folder
path". How do I programatically capture this current path.

My objective is following:

programatically I will be changing the folder from where to pick up files
and save files. However, when I quit the macro I would like to reset the
folder to the original setting before I started the macro. Hence I would
like to capture the current folder space so that I can revert back to it

at
the end.

Many thanks in anticipation of your reply.



  #3   Report Post  
Posted to microsoft.public.excel.programming
DKS DKS is offline
external usenet poster
 
Posts: 103
Default Capturing current folder path

Thanks.

"NickHK" wrote:

Check out CurDir.

NickHK

"DKS" wrote in message
...
When clicking on the OPEN dialog box, .xls displays the current "folder
path". How do I programatically capture this current path.

My objective is following:

programatically I will be changing the folder from where to pick up files
and save files. However, when I quit the macro I would like to reset the
folder to the original setting before I started the macro. Hence I would
like to capture the current folder space so that I can revert back to it

at
the end.

Many thanks in anticipation of your reply.




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
reference to current file path/folder name? Edreams Excel Programming 1 October 27th 05 05:28 PM
Capturing a file path Daniel Bonallack Excel Programming 2 June 24th 05 08:14 PM
Capturing a file path Daniel Bonallack[_5_] Excel Programming 1 October 18th 04 11:10 PM
Help : Macro for capturing current system time imr Excel Programming 3 July 2nd 04 02:58 AM
On Error, Capturing current module and actual line of code Paul Martin Excel Programming 4 June 13th 04 06:21 AM


All times are GMT +1. The time now is 10:53 PM.

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"