I tried this code in Excel 2003 and it tries to open a file I select:
dlgAnswer = Application.Dialogs(xlDialogOpen).Show
The code is executed from a command button on a worksheet.
What I want to do is navigate to a folder, click on any type of file, and then parse out the path to store it in a cell.
Is there a common dialog box that only retrieves the path and file ID in VBA (I will remove the file ID), and not try to open the file?
dlgAnswer = Application.Dialogs(xlDialogOpen).Show
The code is executed from a command button on a worksheet.
What I want to do is navigate to a folder, click on any type of file, and then parse out the path to store it in a cell.
Is there a common dialog box that only retrieves the path and file ID in VBA (I will remove the file ID), and not try to open the file?