rpaulson
Well-known Member
- Joined
- Oct 4, 2007
- Messages
- 1,428
here is my code.
the above code will allow the user to select any *.txt file.
I wish to only allow the user to see and only select setup*.txt files.
I tried this:
Finfo = "Text Files (setup*.txt),setup*.txt,"
but no luck
any ideas?
ross
Code:
Sub Restore_Setup()
Dim Finfo As String
Dim FilterIndex As Long
Dim Title As String
Dim FileName As Variant
Finfo = "Text Files (*.txt),*.txt,"
Title = "Select a SETUP to Import"
FileName = Application.GetOpenFilename(Finfo, _
FilterIndex, Title)
If FileName = False Then exit sub
.... more code
the above code will allow the user to select any *.txt file.
I wish to only allow the user to see and only select setup*.txt files.
I tried this:
Finfo = "Text Files (setup*.txt),setup*.txt,"
but no luck
any ideas?
ross
Last edited: