index > Visual Studio Tools for Office > VSTO Ribbon and Custom Task Pane

VSTO Ribbon and Custom Task Pane


Hello:

I'm working with Excel Addin to customize Ribbon and I have a few questions

First, i have my xml ribbon declaration and i have a button named "UpdateTC", what i need to do is: when user press this button i want to activate an specific excel sheet, how can i do this?

WSG

There are a couple of questions in here so here goes;

From what I can see, 1) - The Addin application you apply your ribbon xml to will fire and capture the callback event for the button being clicked, from here it is simply a matter of checking the button name (One of the eventargs) and then applying the code to activate the sheet. This.Workbooks(0).Activate

2) - This is a bit more confusing as there are a few ways you can handle this, you can create a delegate watching the change event and note changes at the time of change and update the usercontrol code, this is probably the easiest but I am not at my pc to do a couple of sample tests for you.

Regards




Mike Walker MVP - Visual Developer VSTO - Please mark the best replies as Answers !
Mike Walker
reply 2

You can use google to search for other answers

 

More Articles

VSTO training
COM Shims
How to minimize time in opening,saving and closing documents
Generating New Word Doc from C# Application
How to group RadioButtons in Excel
how to export/import data from/to excel files without using exce...
Automating Office using C++: Closing a Word Document using Word:...
save each page of a word merge as a seperate pdf file.
Exporting data from Crystal Report to Excel
VS2005 errors after upgrade from VSTO v3 CTP to VSTO 2005 SE
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

VS.NET 2005 - Professional and Office To…
project inclusion( assemblies) in vsto
help with excel
PDS Server Extensions: Error Code 9008
Mangage code about save Screen to PPT
Large dataset bound to ListObject
Infopath TaskPane Addin
Implement Intellisense in MS Word
Cell.Range catches more than it's suppos…
How do you obtain the paragraph numbering?
Template Word & C#
C# Word add-in...weird error
Microsoft office web components 9.0
Determining current node based on select…
office activex document server eat my me…

Hot Articles

how to append (Excel) Cell contains in e…
C++ AddIns 4 MS-Word
Excel SaveAs() method
Mail message error.
Exporting HTML Data to PowerPoint. Is th…
Protected sheet gives exception with Dat…
Need help on adding controls dynamically…
Generating New Word Doc from C# Applicat…
VSTO Outlook 2007 Questions
Microsoft.Office.Tools.Workbook.Workshee…
Smart Documents in the future
replacing text in header & footer
Word Macro for changing document comment…
Excel PIA Problems
wordObject and Printer Tray selection

Recommend Articles

Problem with TaskPane initialization - p…
InfoPath 2003 Tools for Visual Studio 2003
Managed Code Extension and Active Docume…
Unable to build MSI/Setup program refere…
How to program add-in for Outlook withou…
Can a program created for outlook 2003 r…
Microsoft OutLook Plugin Problems
VSTO excel update question
excell parameters
Insert image into Excel from My.Resource…
Excel to xml conversion -Decimal point p…
RPC Server unavailable when opening new …
Outlook Add-in Setup Issues
Insert a blank line
VSTO2005-Word. Only want the code-behind…