-
Solved: File Extension Filtering
I searched the forums but did not find a similar topic. I am using the common dialog box and trying to filter for files with a *.btb and *.wss extension. The dialog box still shows all the files and folders in that directory. Am I using the incorrect syntax for this filter?
With cdbDialog
.Filter = "*.btb, *.wss"
.ShowOpen
End With
-
This should work:
.Filter = "btb(*.btb)" & vbNullChar & "*.btb" & vbNullChar & "wss(*.wss)" & vbNullChar & "*.wss"
-
Thanks for the quick response. It still displayed files with extensions other than those two.
Here is what I ended up using. Not quite what I wanted but it should work.
.Filter = "Blue Tops (*.btb)|*.btb|Wyoming Slope Stakes (*.wss)|*.wss"
-
.Filter ="Blue Tops/Wyoming Slope Stakes(*.btp;*.wss)|*.btp;*.wss;"
-
That is what I needed. Thanks shamsam1.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules