首页 > TAG信息列表 > objFileSystem
vba 选择文件,文件夹,判断是否存在
打开文件夹:Public Function ChooseFolder(Rg As Range) With Application.FileDialog(msoFileDialogFolderPicker) If .Show Then Rg = .SelectedItems(1) End If End WithEnd Function 打开文件: Public Function ChooseFile(Rg As Range)