Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
problem programming outside the startevent
Hi, Im trying to program outside the startevent that is created when
you open a new excel project in VSTO. My code is: Excel.Worksheet ws = new Excel.WorksheetClass(); ws = (Excel.WorksheetClass)ThisApplication.ActiveWorkbo ok.ActiveSheet; Excel.Range r = ws.get_Range(ws.Cells[1,1], ws.Cells[2,2]); r.MergeCells = true; When I have some of this code in some method but the startevent, it fires an exception. It doesn't show any errors when I compile or anything. someone knows what to do ? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How would I do this programming problem? | Excel Programming | |||
Problem programming the Sort command | Excel Programming | |||
Programming the Progress Bar problem | Excel Programming | |||
macro programming problem | Excel Programming | |||
Excel programming problem | Excel Programming |