This is an exmple from here> I am getting 2 Errors
[highlight #FCE94F]1.[/highlight] ThisWorkbook is not a member of 'ExcelAddIn1.Globals'
[highlight #8AE234]2.[/highlight] Type ActionsPane1 is not defined.
TIA
DougP
[highlight #FCE94F]1.[/highlight] ThisWorkbook is not a member of 'ExcelAddIn1.Globals'
[highlight #8AE234]2.[/highlight] Type ActionsPane1 is not defined.
Code:
Imports Microsoft.Office.Tools.Ribbon
Public Class Ribbon1
Dim actionsPane1 As New [highlight #8AE234]ActionsPaneControl1()[/highlight]
Dim actionsPane2 As New ActionsPaneControl2()
Private Sub Ribbon1_Load(ByVal sender As System.Object, ByVal e As RibbonUIEventArgs) Handles MyBase.Load
[highlight #FCE94F]Globals.ThisWorkbook.ActionsPane[/highlight].Controls.Add(actionsPane1)
Globals.ThisWorkbook.ActionsPane.Controls.Add(actionsPane2)
actionsPane1.Hide()
actionsPane2.Hide()
Globals.ThisWorkbook.Application.DisplayDocumentActionTaskPane = False
End Sub
End Class
TIA
DougP