Why not login to Qiita and try out its useful features?

We'll deliver articles that match you.

You can read useful information later.

0
3

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 5 years have passed since last update.

参照設定 の 情報を VBA で取得する

Last updated at Posted at 2018-05-09

参照設定の初期値

Access 2016 参照設定 の初期値は、下記のようになっています。

image.png

参照設定にライブラリを追加すると、配布した時に、ユーザーのバージョンが低いとエラーになってしまいます。

そのために、ライブラリの設定情報を取得して、判定する場合などの情報です。

参照設定のライブラリ情報を取得する。

マクロで参照設定を操作する
http://officetanaka.net/excel/vba/tips/tips100.htm

image.png

Sub Sample1()
    Dim Ref, buf As String
    For Each Ref In ActiveWorkbook.VBProject.References
        buf = buf & Ref.Name & vbTab & Ref.Description & vbCrLf
    Next Ref
    MsgBox buf
End Sub

image.png

Accessをクラウドで運用する方法

▼Accessを使って、「Accessをクラウドで運用する方法」をブログで発信しています。
よろしければ、お立ち寄りください。

汎用データベース「カードボックス BARI」
http://access-cloud.hatenablog.com/entry/cardbox-bari

0
3
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

Qiita Conference 2025 will be held!: 4/23(wed) - 4/25(Fri)

Qiita Conference is the largest tech conference in Qiita!

Keynote Speaker

ymrl、Masanobu Naruse, Takeshi Kano, Junichi Ito, uhyo, Hiroshi Tokumaru, MinoDriven, Minorun, Hiroyuki Sakuraba, tenntenn, drken, konifar

View event details
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?