Advertisement

07.26.2007 at 04:44PM PDT, ID: 22724342
[x]
Attachment Details

Interact with Spreadsheet cells from Excel Addin - C# .NET

Asked by gerry99 in Microsoft Excel Spreadsheet Software

Tags: excel, addin

Using Visual Studio tools for Office (2005), I'm trying to develope a C# .NET module that will interact with my C# server which updates live stock quotes.  I can easily interact with my module from Excel, but I have 2 problems:

1) I'd like to create an Excel RTD module in C#, so that I can embed custom formulas into cells, that will be updated in realtime.
2) From an Excel Add-in, I can add my menu to excel, and interact with it, but I cannot write a number into a spreadsheet cell.  Every example I've seen looks like:
         Excel.Range rng = Globals.Sheet1.Range["A1", missing];
         rng.Value2 = "socket state: " + state;
My problem is that I don't know where the Globals static object is defined.  The wizard I used to create an Excel addin created a Globals object that does not contain a Sheet1 variable.  Where is this thing defined? and how can I use it, or is there a better way to poke text into a spreadsheet using an Excel Add-in?

Thanks,
GerryStart Free Trial
[+][-]07.26.2007 at 05:19PM PDT, ID: 19579337

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.26.2007 at 07:39PM PDT, ID: 19579916

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.26.2007 at 07:52PM PDT, ID: 19579974

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: excel, addin
Sign Up Now!
Solution Provided By: zorvek
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.30.2007 at 11:16AM PDT, ID: 19594507

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32