Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Dim fd As FileDialog, FilePath As String
  2.  
  3. Set fd = Application.FileDialog(msoFileDialogFilePicker)
  4. With fd
  5. .Title = "Select the file you would like to import"
  6. .AllowMultiSelect = False
  7. .Filters.Clear
  8. .Filters.Add "Potato File", "*.pot"
  9. .FilterIndex = 1
  10. If .Show <> -1 Then
  11. End
  12. End If
  13. FilePath = .SelectedItems(1)
  14. End With
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement