Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Location in Excel 2000

Status
Not open for further replies.

44nato44

Programmer
Dec 12, 2008
115
NL
Hi

I need the user to open a dialog box and select a folder, and I need to save this to a string.

Buuut I am not able to find this, I can open and save files but not get the folder location.

Anybody has any ideas ?

Cheers

Best Regards
 


Hi,

Check out the GetOpenFileName method.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
I've already post this function:
Code:
Public Function PickFolder(strStartDir As Variant) As String
Dim SA As Object, f As Object
Set SA = CreateObject("Shell.Application")
Set f = SA.BrowseForFolder(0, "Choose a folder", 16 + 32 + 64, strStartDir)
If (Not f Is Nothing) Then
  PickFolder = f.Items.Item.Path
End If
Set f = Nothing
Set SA = Nothing
End Function

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top