Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just adding to what Stephen has said, I don't think you can hook a
commandbutton's events in .NET without Visual Studio Tools for Office. VSTO provides many accessor methods (e.g. get_Range) to deal with the problem of C# not supporting parameterized properties (that why you're using Value2, right?) If you don't have VSTO available to you, you'll probably want to start using a lot of hyperlinks because the SheetFollowHyperlink is the most useful event! See that following article MSDN for lots of non-VSTO C# code: Understanding the Excel Object Model from a .NET Developer's Perspective: http://msdn.microsoft.com/vstudio/of...l/excelobj.asp -- Stephen Bullen wrote in message ... Hi Harald, I'm trying to develop en application in Vusial Studio (C#) towards excel. But I cannot get anything to work. Trying to find a object (a command button) or even outputting text to cell (rng.Value2("Hello world");) throws an exception. The exception have the message: HRESULT: 0x800A03EC. What is wrong? I cannot find any information out there that helps. If you go to msdn.microsoft.com and search for 'Visual Studio Tools for Office', you should find lots of c# examples that might help. Regards Stephen Bullen Microsoft MVP - Excel www.BMSLtd.co.uk |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Is Visual Basic the same as Visual Studio 2008? | Excel Worksheet Functions | |||
Excel rejects XSD from Visual Studio DataSet Designer | Excel Discussion (Misc queries) | |||
get Excel array values in Visual Studio VB | Excel Discussion (Misc queries) | |||
changing the visual basic in office 2003 to visual studio net | Excel Discussion (Misc queries) | |||
Visual Studio Tools for Office- Excel | Excel Programming |