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.

AccessのVBAで特定サイト(URL)をデフォルトブラウザーで開く

Posted at

やり方

サンプルコード
With CreateObject("WScript.Shell")
    '第二引数の1 = 通常サイズで開くという指定
    .Run "http://※※※", 1
End With

サンプルコードのコンセプト。

  • とにかく短いコード。
  • 変数を作らない。(変数名を考えなくていい)
  • 参照設定を変更しなくていい。(ただしコンパイルチェックができないというデメリットあり)

参考サイトさん

バージョン

Windows 10 Pro 21H2 OSビルド 19044.1865
Microsoft Access for Microsoft 365 MSO (バージョン 2207 ビルド 16.0.15427.20166) 32 ビット

TODO:ブラウザーを指定して開く方法まとめる。
TODO:第二引数の画面サイズについて動作確認とまとめ。

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?