Solved

Excel VB.net Add-in regenerate custom TaskPane

Posted on 2012-12-30
2
544 Views
Last Modified: 2012-12-31
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
0
Comment
Question by:murbro
2 Comments
 
LVL 16

Accepted Solution

by:
terencino earned 500 total points
ID: 38731629
Hi murbro, would the CustomTaskPanes.Remove method work for you? Here is an example (for Word but quite similar) showing the method in action:
How to Create a Word Addin using Visual Studio
Hope that helps
...Terry
0
 

Author Closing Comment

by:murbro
ID: 38732092
Yes. thanks very much
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now