0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

VBSではい、いいえの質問の後にEdgeでサイトに移動

Posted at
Option Explicit
If MsgBox("*****", vbYesNo) = 6 Then
    ' ブラウザで開くURL
    Const URL = "https://www.yahoo.co.jp/"

    ' ShellApplicationオブジェクトの作成
    Dim objShell
    Set objShell = CreateObject("Shell.Application")

    ' Edgeの起動と指定したページを開く
    objShell.ShellExecute ("microsoft-edge:" & URL)

    ' ShellApplicationオブジェクトの破棄
    Set objShell = Nothing
Else
    MsgBox "確認してから再度お試しください"
End If

1.png
2.png

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?