Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

VB.net Excel Add-In msoControlPopup is not declared

Hi
In the following line in my VB.net Excel Add-in I get the error  "msoControlPopup is not declared"
 Globals.ThisAddIn.Application.CommandBars("Cell").Controls.Add(msoControlPopup, Id:=1)
0
Murray Brown
Asked:
Murray Brown
1 Solution
 
Rory ArchibaldCommented:
It should be:

       
Globals.ThisAddIn.Application.CommandBars("Cell").Controls.Add(Type:=Microsoft.Office.Core.MsoControlType.msoControlPopup, Id:=1)

Open in new window


I believe.
0
 
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Thanks very much
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now