Advertisement

07.05.2008 at 01:11PM PDT, ID: 23540977
[x]
Attachment Details

Browse for Folder

Asked by keeblerjp in Microsoft Excel Spreadsheet Software

Tags: Microsoft, Excel, 2003, VBA

I have this module, which does great and works fine.

But what I am running into is user errors where users are looking for the file that is within the path, they get to the correct folder, and instead of just believing that the file is in that folder, because they are unable to see it they think that its not correct.

So i want it let the user browse for the file, but in the end only select up to the folder, which is what it is doing now.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
Sub BrowseforFolder()
 
 Dim fdBrowser As FileDialog
 
 'Get the File Dialog object
 Set fdBrowser = Application.FileDialog(msoFileDialogFolderPicker)
 
 With fdBrowser
 
  'Initialize it
  .Title = "Select Folder"
  .InitialFileName = "c:\"
  
  'Display the dialog
  If .Show Then
   Worksheets("Master").Range("E29").Value = .SelectedItems(1)
  End If
 End With
End Sub
[+][-]07.05.2008 at 01:17PM PDT, ID: 21938221

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 01:23PM PDT, ID: 21938242

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 01:29PM PDT, ID: 21938270

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: Microsoft, Excel, 2003, VBA
Sign Up Now!
Solution Provided By: zorvek
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628