From an excel file macro, I want to open a "folder selection box" using VBA and select a file (excel file).
(Ideally, it should give an error if any other file than excel file is selected)
Then I want to get the path of any file selected through this selection box
lets say the path returned was
"C:\Documents and Settings\MyExcelsheet.xls"
So that I can set the path like this
Set wbk = Workbooks.Open("C:\Documents and Settings\MyExcelsheet.xls")
Would appreciate any help
Regards
(Ideally, it should give an error if any other file than excel file is selected)
Then I want to get the path of any file selected through this selection box
lets say the path returned was
"C:\Documents and Settings\MyExcelsheet.xls"
So that I can set the path like this
Set wbk = Workbooks.Open("C:\Documents and Settings\MyExcelsheet.xls")
Would appreciate any help
Regards