liangx85

文件对话框的实例

With Application.FileDialog(msoFileDialogopen)

  .AllowMultiselect = False

      .Filters.clear

      .Initiatdenanc = strfile

      if .show = true then

        .selectitems(1) ' 指定对象取得

      end if

end With

  msoFileDialogopen : 选择文件

      msoFileDialogFolderPicker :选择文件夹

posted on 2013-12-31 10:49  liangx85  阅读(141)  评论(0编辑  收藏  举报

导航