0
0

More than 1 year has passed since last update.

vbaツール

Last updated at Posted at 2022-07-10

セールからパスを開く

Sub openfloud()

    Dim addressStr As String

    addressStr = Application.Selection.Address

    Dim fso As FileSystemObject

    Set fso = New FileSystemObject
    
    addressStrArr = Strings.Split(addressStr, ":")
    
    If UBound(addressStrArr) <> 0 Then
        MsgBox "セールを選択してください。"
    ElseIf fso.FolderExists(Range(addressStr)) Then
    
        Shell "cmd.exe /c explorer.exe " & Range(addressStr)
    
    End If
    

End Sub
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0