LoginSignup
1
2

More than 5 years have passed since last update.

Access2010の起動時にマクロを実行させる方法

Posted at

vbaでAutoExecを作ること、マクロでAutoExecを呼び出すようにすること、が要点。

1.下記関数を用意する

Function AutoExec() As Integer
    Debug.Print "auto exec"
End Function

2.マクロを作成する

作成→マクロ
新しいアクションの追加で「プロシージャの実行」を選択する
プロシージャ名に「AutoExec()」を入力
マクロを「AutoExec」という名前で保存
スクリーンショット 2016-01-28 9.36.13.png

マクロ実行をすっ飛ばして、ファイルを開きたい

シフトを押しながらファイルを開く

なお、ファイルが開ききるまでシフトを押さないとダメっぽいです。

1
2
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
1
2