I have a macro:
Sub test()
Dim myFile As String
Dim YourFolderPath As Variant
YourFolderPath = "\\ESCPTOVSPIFS003\Shares5\ESC\SSB2\Revenue Management\40 Elm Documentation\Bank Reconciliations"
myFile = Application.GetOpenFilename("Text Files (*.txt),*.txt")
Workbooks.Open Filename:=myFile
End Sub
But it doesn't do what I want it to. It is actually the I want the macro to open a folder and allow the user to pick the appropriate text file. So far when I run it, it brings up a folder, but not to the path specified.
Please help! I have been looking at this forever it seems.
Sub test()
Dim myFile As String
Dim YourFolderPath As Variant
YourFolderPath = "\\ESCPTOVSPIFS003\Shares5\ESC\SSB2\Revenue Management\40 Elm Documentation\Bank Reconciliations"
myFile = Application.GetOpenFilename("Text Files (*.txt),*.txt")
Workbooks.Open Filename:=myFile
End Sub
But it doesn't do what I want it to. It is actually the I want the macro to open a folder and allow the user to pick the appropriate text file. So far when I run it, it brings up a folder, but not to the path specified.
Please help! I have been looking at this forever it seems.