Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Can the user "Choose" the path via a VBA command?

I wish to work in a directory chosen by a user.

At the moment, I canąt seem to get it to recognise the folder where the user
chooses a file with the łApplication.GetOpenFilename˛ command. I thought
that this would be the easiest way, in that the user could choose a file in
the folder they wanted to work in and Iąd change it somehow * not so.

Any ideas ?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Can the user "Choose" the path via a VBA command?

Cannot see what your problem is. The following returns the full path
on my PC (XL97/Windows NT4)

f = Application.GetOpenFilename
MsgBox (f)


Regards
BrianB
================================================== ========


Brad Patterson wrote in message ...
I wish to work in a directory chosen by a user.

At the moment, I canąt seem to get it to recognise the folder where the user
chooses a file with the łApplication.GetOpenFilename˛ command. I thought
that this would be the easiest way, in that the user could choose a file in
the folder they wanted to work in and Iąd change it somehow * not so.

Any ideas ?

--

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Can the user "Choose" the path via a VBA command?

Can the user "Choose" the path via a VBA command?You can put up the
directory selection dialog:

http://j-walk.com/ss/excel/tips/tip29.htm
How to select a directory

found at John Walkenbach's site.

--
Regards,
Tom Ogilvy


"Brad Patterson" wrote in message
...
I wish to work in a directory chosen by a user.

At the moment, I can't seem to get it to recognise the folder where the user
chooses a file with the "Application.GetOpenFilename" command. I thought
that this would be the easiest way, in that the user could choose a file in
the folder they wanted to work in and I'd change it somehow - not so.

Any ideas ?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Can the user "Choose" the path via a VBA command?

Brad Patterson wrote:
I wish to work in a directory chosen by a user.

At the moment, I can’t seem to get it to recognise the folder where the
user chooses a file with the “Application.GetOpenFilename” command. I
thought that this would be the easiest way, in that the user could
choose a file in the folder they wanted to work in and I’d change it
somehow – not so.

Any ideas ?


Look at the CHDIR command this will allow you change to the desired
directory prior to using GetOpenFileName command.

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
Excel 2007 displays Locked by "another user", does not show User I Ana Excel Discussion (Misc queries) 2 January 19th 11 01:57 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Need command line to change "#DIV/0!" into a "0" (zero) mulehead Excel Discussion (Misc queries) 1 May 20th 08 02:09 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
inserting a conditional "go to" command on a excel "if" function velasques Excel Worksheet Functions 5 March 10th 06 08:16 PM


All times are GMT +1. The time now is 10:21 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"