Ron
Ron

Reputation: 4095

VBS - display multple filetypes in save dialog

I got the following code to open the save dialog with one FileType:

Set objDialog = CreateObject("SAFRCFileDlg.FileSave")
objDialog.FileName = "Automatic Generated Presentation"
objDialog.FileType = "PowerPoint 97-2003 Presentation (*.ppt)"
objDialog.OpenFileSaveDlg

How can I add another FileType to the combobox / listbox in the dialog?
I tried to seperate them using '|', using ',', using ';' and more - nothing worked ofcourse.

Is that even possible?
I didnt find anything like that in the internet.

Will appreciate your help.

Upvotes: 1

Views: 343

Answers (1)

Helen
Helen

Reputation: 97677

I've found an interesting article where the author debugs Windows API calls made by the SAFRCFileDlg.FileSave object to find out whether it allows multiple file filters:
Debugging the SAFRCDLG.DLL FileType filter string

The answer is No.

Upvotes: 1

Related Questions