Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 61
Default file chooser

I want users to be able to specify the directory where their files are
located. I manipulate a number of files, one person might have them under
c:\mydata, another might store them f:\test. Is there such a control in
Excel? Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default file chooser

This might be what you are looking for:

Sub dk()

Wb = Application.Dialogs(xlDialogOpen).Show
MsgBox ActiveWorkbook.Name
End Sub

You can use the "previous" icon in the dialog box to walk back up the
directory chain.

"Diana" wrote in message
...
I want users to be able to specify the directory where their files are
located. I manipulate a number of files, one person might have them under
c:\mydata, another might store them f:\test. Is there such a control in
Excel? Thanks in advance.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default file chooser

If you are looking for a folder picker then try

Sub Macro()


Dim strFolder As String
With Application.FileDialog(msoFileDialogFolderPicker)
.AllowMultiSelect = False
If .Show = -1 Then
strFolder = .SelectedItems(1)
Else
MsgBox "No folder selected"
End If
End With

End Sub

--
Jacob


"Diana" wrote:

I want users to be able to specify the directory where their files are
located. I manipulate a number of files, one person might have them under
c:\mydata, another might store them f:\test. Is there such a control in
Excel? Thanks in advance.

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
How to use Calender control as date chooser in excel?? Rakesh Excel Discussion (Misc queries) 2 May 25th 06 04:33 PM
How to setup a 'chooser' box/cell for Y or No? Pheasant Plucker® Excel Discussion (Misc queries) 6 January 17th 06 12:26 AM
Formula chooser? JKG Excel Worksheet Functions 3 October 11th 05 05:41 PM
i received a file that reads powerpoint document file file exten. CCAROLACEREC Excel Discussion (Misc queries) 1 December 4th 04 05:02 PM
GUI like the file chooser Mark[_36_] Excel Programming 2 February 10th 04 12:18 PM


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