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

「Excel VSTOブック」プロジェクトが作成できない場合

Posted at

対象者

Visual Studio InstallerからOffice/SharePoint 開発のインストール後、
「Excel VSTOアドイン」プロジェクトは作成できるが、
「Excel VSTOブック」「Excel VSTOテンプレート」プロジェクトの作成時にアプリケーションのドキュメントを選択後に「VSTO アドインがアクティブになっていません」みたいなエラーで作成できない場合の備忘録

image.png

image.png

image.png

解決方法

2008年の記事を参考に解決した。
Visual Studio Tools for Officeで作るOfficeアプリケーション

M365 Excelの場合、まずは
Excelのファイル > オプション > トラストセンター > トラストセンターの設定(T) をクリックすることでトラストセンターを開く。

image.png

信頼できる場所 から「新しい場所の追加(A)」を選び、Visual Studioのソリューションを含むフォルダを指定

image.png

Visual Studioを再起動後、「Excel VSTOブック」プロジェクトを作れるようになった。

環境

Microsoft Visual Studio Community 2022 Preview (64 ビット)
Version 17.0.0 Preview 7.0
Microsoft Framework Version 4.8
Microsoft 365 Apps for enterprise

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?