ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Browsing/opening a file with a macro (https://www.excelbanter.com/excel-discussion-misc-queries/81495-browsing-opening-file-macro.html)

Chip Smith

Browsing/opening a file with a macro
 
is there a way to use a macro to open a file. i know you can use the findfile
function. but what i am looking for is for when the macro runs it opens a
browse box that prompts the user to find their file to open. then it opens
the file. any suggestions?


--
--Chip Smith--
MVP Wannabe :)

Dave Peterson

Browsing/opening a file with a macro
 
Take a look at application.getopenfilename in VBA's help

Chip Smith wrote:

is there a way to use a macro to open a file. i know you can use the findfile
function. but what i am looking for is for when the macro runs it opens a
browse box that prompts the user to find their file to open. then it opens
the file. any suggestions?

--
--Chip Smith--
MVP Wannabe :)


--

Dave Peterson


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com