打开文件getopenfilename 链接:https://zhidao.baidu.com/question/577329978.html

GetOpenFilename相当于Excel打开窗口,通过该窗口选择要打开的文件,并可以返回选择的文件完整路径和文件名。

fname = Application.GetOpenFilename("Microsoft Excel(*.xls;*.xlsx;*.xlsm),*.xls;*.xlsx;*.xlsm")

原文地址:https://www.cnblogs.com/lidapengwww/p/12605088.html