Hello,
I am trying to update my code to open the dialogue box to my desktop. Not quite sure how to do this with the GetOpenFileName method... I did some googling, and tried the following, but no luck. Any advice appreciated.
I am trying to update my code to open the dialogue box to my desktop. Not quite sure how to do this with the GetOpenFileName method... I did some googling, and tried the following, but no luck. Any advice appreciated.
VBA Code:
Dim reconFile As String
ChDrive "C:\"
ChDir "C:\Users\Public\Desktop\"
reconFile = XL.Application.GetOpenFilename(FileFilter:="Microsoft Excel Workbooks (*.xls;*.xlsx;*.xlsm),*.xls;*.xlsx;*.xlsm", _
Title:="Select reconciliation file you wish to update")