Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I saw this code in a book - it allows you to choose a directory path. With Application.FileDialog(msoFileDialogFolderPicker) .InitialFileName = Application.DefaultFilePath & "\" .Title = "Please select a location for the backup" .Show If .SelectedItems.Count = 0 Then MsgBox "Canceled" Else MsgBox .SelectedItems(1) End If End With Here is the problem - when I choose a directory I cannot see the files in the directory - is there a way to change the code so that I can see the files? Thanks for your help |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Jeff,
Replace msoFileDialogFolderPicker with msoFileDialogFilePicker -- Hope that helps. Vergel Adriano "Jeff" wrote: Hi, I saw this code in a book - it allows you to choose a directory path. With Application.FileDialog(msoFileDialogFolderPicker) .InitialFileName = Application.DefaultFilePath & "\" .Title = "Please select a location for the backup" .Show If .SelectedItems.Count = 0 Then MsgBox "Canceled" Else MsgBox .SelectedItems(1) End If End With Here is the problem - when I choose a directory I cannot see the files in the directory - is there a way to change the code so that I can see the files? Thanks for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't Open Certain Excel Files in Folder | Excel Discussion (Misc queries) | |||
open and save an entire folder | Excel Discussion (Misc queries) | |||
can“t change folder when open or save | Excel Discussion (Misc queries) | |||
Unable to open a file from its icon in folder | Excel Discussion (Misc queries) | |||
I can't open an xls.file compressed(zipped)folder in Windows XP? | Excel Discussion (Misc queries) |