Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default FileDialog Folder selection spec

Is there a way to specify a folder spec when invoking the
FileDialog() to select a folder? I want to display
the "new*" folders and let the user select one of them.

For example:

Set fd = Application.FileDialog(msoFileDialogFolderPicker)
fd.Filters.Add xxxxxxxxx

The "fd.Filters.Add" option appears to work only for file
selection.

Is there another folder selector which supports this?

thanks.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default FileDialog Folder selection spec

Hi

This should in theory direct all excel's "open" and "save" dialogs to the
desired folder:

ChDrive "C:\Temp"
ChDir "C:\Temp"

--
HTH. Best wishes Harald
Followup to newsgroup only please

"Alan" skrev i melding
...
Is there a way to specify a folder spec when invoking the
FileDialog() to select a folder? I want to display
the "new*" folders and let the user select one of them.

For example:

Set fd = Application.FileDialog(msoFileDialogFolderPicker)
fd.Filters.Add xxxxxxxxx

The "fd.Filters.Add" option appears to work only for file
selection.

Is there another folder selector which supports this?

thanks.





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default FileDialog Folder selection spec


This helps, but doesn't solve the problem.

I have many folders in the desired folder. When the
folder selector is displayed, I want only the folders
which match my filter to be displayed.

For example, if I have the following folders:

C:\Temp\new
C:\Temp\new_1
C:\Temp\new_2
C:\Temp\old
C:\Temp\old_1

When invoking the FileDialog to select a folder, I
first "ChDir C:\Temp", then I want to specify "new* and
display only the "new*" folders in the FileDialog.
The "old*" folders will not be displayed in the
FileDialog. Can this be done?


-----Original Message-----
Hi

This should in theory direct all excel's "open"

and "save" dialogs to the
desired folder:

ChDrive "C:\Temp"
ChDir "C:\Temp"

--
HTH. Best wishes Harald
Followup to newsgroup only please

"Alan" skrev i

melding
...
Is there a way to specify a folder spec when invoking

the
FileDialog() to select a folder? I want to display
the "new*" folders and let the user select one of them.

For example:

Set fd = Application.FileDialog

(msoFileDialogFolderPicker)
fd.Filters.Add xxxxxxxxx

The "fd.Filters.Add" option appears to work only for

file
selection.

Is there another folder selector which supports this?

thanks.





.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default FileDialog Folder selection spec

No, I don't think so. A folder is a folder and it doesn't have a custom "relevance"
property. Instead of an Excel dialog, you will have to roll your own control using a
programming suite like Visual Studio. It's prettty simple to do with a treeview if you
know how to -but a true pain to deploy to your users, which probably doesn't have the
necessary user priviledges to install anything.
--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Alan" wrote in message
...

This helps, but doesn't solve the problem.

I have many folders in the desired folder. When the
folder selector is displayed, I want only the folders
which match my filter to be displayed.

For example, if I have the following folders:

C:\Temp\new
C:\Temp\new_1
C:\Temp\new_2
C:\Temp\old
C:\Temp\old_1

When invoking the FileDialog to select a folder, I
first "ChDir C:\Temp", then I want to specify "new* and
display only the "new*" folders in the FileDialog.
The "old*" folders will not be displayed in the
FileDialog. Can this be done?


-----Original Message-----
Hi

This should in theory direct all excel's "open"

and "save" dialogs to the
desired folder:

ChDrive "C:\Temp"
ChDir "C:\Temp"

--
HTH. Best wishes Harald
Followup to newsgroup only please

"Alan" skrev i

melding
...
Is there a way to specify a folder spec when invoking

the
FileDialog() to select a folder? I want to display
the "new*" folders and let the user select one of them.

For example:

Set fd = Application.FileDialog

(msoFileDialogFolderPicker)
fd.Filters.Add xxxxxxxxx

The "fd.Filters.Add" option appears to work only for

file
selection.

Is there another folder selector which supports this?

thanks.





.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default FileDialog Folder selection spec


Thanks for the followup. It appears there is not an easy
way to do it and distribute the selector to other users.

As a workaround, I'll move my list of "candidate folders"
to their own folder and use the FileDialog to browse the
container folder.

Thanks for the suggestions.

-----Original Message-----
No, I don't think so. A folder is a folder and it

doesn't have a custom "relevance"
property. Instead of an Excel dialog, you will have to

roll your own control using a
programming suite like Visual Studio. It's prettty

simple to do with a treeview if you
know how to -but a true pain to deploy to your users,

which probably doesn't have the
necessary user priviledges to install anything.
--
HTH. Best wishes Harald
Followup to newsgroup only please.

"Alan" wrote in

message
...

This helps, but doesn't solve the problem.

I have many folders in the desired folder. When the
folder selector is displayed, I want only the folders
which match my filter to be displayed.

For example, if I have the following folders:

C:\Temp\new
C:\Temp\new_1
C:\Temp\new_2
C:\Temp\old
C:\Temp\old_1

When invoking the FileDialog to select a folder, I
first "ChDir C:\Temp", then I want to specify "new* and
display only the "new*" folders in the FileDialog.
The "old*" folders will not be displayed in the
FileDialog. Can this be done?


-----Original Message-----
Hi

This should in theory direct all excel's "open"

and "save" dialogs to the
desired folder:

ChDrive "C:\Temp"
ChDir "C:\Temp"

--
HTH. Best wishes Harald
Followup to newsgroup only please

"Alan" skrev i

melding
...
Is there a way to specify a folder spec when

invoking
the
FileDialog() to select a folder? I want to display
the "new*" folders and let the user select one of

them.

For example:

Set fd = Application.FileDialog

(msoFileDialogFolderPicker)
fd.Filters.Add xxxxxxxxx

The "fd.Filters.Add" option appears to work only for

file
selection.

Is there another folder selector which supports

this?

thanks.





.



.



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
Using Application.FileDialog(msoFileDialogFolderPicker) Ayo Excel Discussion (Misc queries) 1 March 12th 08 01:01 PM
Takes too long for Filedialog to change directory File selection in office2003 Excel Discussion (Misc queries) 1 May 1st 06 05:33 AM
FileDialog to select file Acid-Sky Excel Discussion (Misc queries) 2 September 12th 05 06:53 PM
filedialog Norm Excel Worksheet Functions 0 July 29th 05 10:17 PM
FileDialog Jag Man Excel Programming 3 February 2nd 04 04:50 AM


All times are GMT +1. The time now is 03:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"