Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
I have this code below which allows a user to select a file. How can I modify it so that the selection comes from a specific directory?
Code:
FileToOpen = Application.GetOpenFilename(Title:="Raw ActiveNet Files", FileFilter:="active_report_(*.xls*),*xls*")
If FileToOpen <> False Then
Set OpenBook = Application.Workbooks.Open(FileToOpen)
ActiveWindow.Visible = False