file browse multiple filters
Moderators: JRL, Dorian (MJT support)
file browse multiple filters
To enter a filter to limit the file browse button I enter it as
pdf files|*.pdf
However, I need to add an additonal filter, I want to also add tif files. So the user has to select a tif or a PDF. How do I add the line tif files|*.tif to it. I cannot recall what to use and could not find it in the help section. (perhaps that is just me) I tried multiline edit and it did not work (didn't think it would). Could someone refresh my memory on this.
pdf files|*.pdf
However, I need to add an additonal filter, I want to also add tif files. So the user has to select a tif or a PDF. How do I add the line tif files|*.tif to it. I cannot recall what to use and could not find it in the help section. (perhaps that is just me) I tried multiline edit and it did not work (didn't think it would). Could someone refresh my memory on this.
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
I thnk I remember seeing how to have mutiple file types at the same time, but I can't find that post...
What I want is: Our File types (*.TXT, *.PDF)|*.TXT, *.PDF
and then user sees all TXT and PDFs at once
But this shows nothing.
I can break these apart into separate entries and it works fine.
Is there a way to show both at once?
What I want is: Our File types (*.TXT, *.PDF)|*.TXT, *.PDF
and then user sees all TXT and PDFs at once
But this shows nothing.
I can break these apart into separate entries and it works fine.
Is there a way to show both at once?
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Unfortunately you can't do that. Windows browse dialogs just don't work that way. You could do a *.* filter. But that would show everything.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA
All you need to do to is separate the items with semicolons and you can have multiple file types display in one pane. Run Word or Excel and select "Open" and you can see this demonstrated in the filters list box (just below where you would enter a file name to be opened).
Code: Select all
Filter = 'Various file types (*.txt; *.pdf; *.jpg)|*.txt; *.pdf; *.jpg|Any file (*.*)|*.*'
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Ahah! I stand corrected.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
-
- Macro Veteran
- Posts: 267
- Joined: Mon Sep 27, 2010 8:57 pm
- Location: Seattle, WA