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

VBA Projectの参照不可になったOCXを登録したい

Last updated at Posted at 2024-03-30

1. はじめに

  • VBAのレガシーソースで参照設定になったライブラリを復元したい
  • OCXを登録して利用できるようにしたい

2. 開発環境

  • Windows 10 (64bit)
  • Excel 2016
  • VBA

3. 事象

  • 参照不可のライブラリをなんとかしたい
    image.png

4. 対応

4.1. 対象のOCXを取得する

  • 今回は下記サイトを参考にOCXを取得して、ローカルにコピーした

4.2. OCXをライブラリとして登録する

  • 参照不可のライブラリを登録する
    regsvr32 "C:¥Windows¥SysWOW64¥mscomct2.ocx"
    image.png

  • 正常終了すると成功メッセーが表示される
    image.png

4.3. 動作確認

  • 参照不可の状態が解消できた
    image.png

5. 参考文献

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