Guest User

Untitled

a guest
Jan 19th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Dim openDialog As FileDialog
  2.  
  3. Set openDialog = Application.FileDialog(msoFileDialogFilePicker)
  4. On Error GoTo DoNothing
  5. With openDialog
  6. .title = "Import"
  7. .AllowMultiSelect = False
  8. .Show
  9. End With
  10.  
  11. FName = openDialog.SelectedItems.Item(1)
  12. 'Close FName
  13.  
  14. Open FName For Input Access Read As #1
  15. On Error GoTo DoNothing
  16.  
  17. Set openDialog = Nothing
Add Comment
Please, Sign In to add comment