Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5989095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:03:09+00:00 2026-05-22T23:03:09+00:00

It seems, custom task panes are shared among all workbooks within Excel process, as

  • 0

It seems, custom task panes are shared among all workbooks within Excel process, as CustomTaskPanes property is on the add-in object level and thus it’s shared among all workbooks. (am I right?)
I need to show different contents in the task pane for different workbooks, how can I achieve that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T23:03:10+00:00Added an answer on May 22, 2026 at 11:03 pm

    You are right, custom task panes are registered at an application level.

    Out of the box you must use the Ribbon Designer, it doesnt matter if you don’t create a ribbon, but it is the best way to achieve what you want.
    In the loaded event of the ribbon, you need to access Globals.ThisAddin.CustomTaskPanes to register your task pane if it isnt registered, then update the content based on the the current context. Off the top of my head I am not sure what events you will need to hook into, but probably need to know when a new workbook is activated/selected and update the task pane.

    I have been working on a project (VSTO Contrib) which tries to solve this disconnect, the RibbonFactory will allow you to register a viewmodel for a object/ribbon type (Word.Document, Outlook.Appointment etc) and you can simply inherit from IRegisterCustomTaskPanes to wire up a custom task pane for that workbook/document/any other context. It will take care of all the synchronisation for you. Have a read of what it can do at http://jake.ginnivan.net/vsto-contrib/ribbon-factory
    Feel free to contact me or post here for more info.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an Outlook 2010 Add-In in C# which adds a docked Custom Task
Arr, I am stuck! I'm writing an Excel add-in that opens up a custom
It seems like searching with CAML and SPQuery doesn't work properly against custom metadata,
I'm creating some custom work items in TFS and the helptext field seems handy
I've created a custom thread pool utility, but there seems to be a problem
When using drawRect for a custom UIButton subclass, it never seems to get called
I have an excel 2007 Add-in built with VS2010 VSTO library. when i create
My Situation: I have an NSDictionary object. Keyed by NSNumber. Values are custom objects.
I built a custom rake task to send emails to my users, but I
I have a custom Task that I want to execute when building my C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.