①設定,GetOpenFileName,(FSO

Excel VBAにおけるデータ高速処理
ファイル名の取得、(必要があればFSOを利用し拡張子変更)
ファイル名の取得、(必要があればFSOを利用し拡張子変更)
順位 | 名前 | スコア | 称号 | 打鍵/秒 | 正誤率 | 時間(秒) | 打鍵数 | ミス | 問題 | 日付 |
---|---|---|---|---|---|---|---|---|---|---|
1 | kuです | 4454 | C+ | 4.5 | 97.6% | 64.2 | 293 | 7 | 12 | 2025/01/05 |
関連タイピング
-
プレイ回数5444長文英字1327打
-
プレイ回数325長文英字686打
-
プレイ回数258長文英字328打
-
プレイ回数397長文かな360打
問題文
ふりがな非表示
ふりがな表示
(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) &