Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Excel VB.net Add-in regenerate custom TaskPane

Hi

I use the code below to add a custom task pane. I need to erase the task pane so that I can add it at a later point. How do I delete a taskpane so that I can use the code below to add it again?


   Private oTaskPane_Select As TaskPane_Select
    Public WithEvents Select_CustomTaskPane As Microsoft.Office.Tools.CustomTaskPane

 Private Sub ThisAddIn_Startup() Handles Me.Startup

          oTaskPane_Select = New TaskPane_Select()
            Select_CustomTaskPane = CustomTaskPanes.Add(oTaskPane_Select, "SELECT Elements")
            Select_CustomTaskPane.DockPosition = Office.MsoCTPDockPosition.msoCTPDockPositionBottom
ASKER CERTIFIED SOLUTION
Avatar of terencino
terencino
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Yes. thanks very much