Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub TestIt()
- NewFN = Application.GetOpenFilename(FileFilter:="Excel Files (*.xls), *.xls", Title:="Please select a file")
- If NewFN = False Then
- ' They pressed Cancel
- MsgBox "Stopping because you did not select a file"
- Exit Sub
- Else
- Workbooks.Open Filename:=NewFN
- End If
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement