①設定,GetOpenFileName,(FSO

背景
投稿者投稿者どらねこいいね0お気に入り登録
プレイ回数355難易度(3.4) 293打 長文 英字
Excel VBAにおけるデータ高速処理
ファイル名の取得、(必要があればFSOを利用し拡張子変更)

関連タイピング

問題文

ふりがな非表示 ふりがな表示
(option explicit) Option Explicit (option base 1) Option Base 1 (application.screenupdating=false) Application.ScreenUpdating=False (application.displayalerts=false) Application.DisplayAlerts=False (dim myf as string) Dim MyF As String (myf=application.getopenfilename( , ,)) MyF=Application.GetOpenFileName(,,) (if myf=false then) If MyF=False Then (exit sub  end if) Exit Sub End If (dim myfso as new filesystemobject) Dim MyFSO As New FileSystemObject (dim myfile as file) Dim MyFile As File
(set myfile=myfso.getfile(myf)) Set MyFile=MyFSO.GetFile(MyF) (myfile.name=myfso.getbasename(myf) &) MyFile.Name=MyFSO.GetBaseName(MyF) &