Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VSTO .net - Adding a Usercontrol unto Worksheet

I have been at it for a while now. I am still new to Vsto.

What I need is to add a usercontrol unto a worksheet. Kinda like
chart object, but my object instead.

I am using VSTO, VB.Net and Excel 2003. This is what I have so far:

Dim Usercontrol As ExcelProject1.UserControl1
ThisWorkbook.ActiveSheet.oleobjects.add(classtype: =Usercontrol)

it almost worked, but a message pops up saying "object not refrence o
an object".

Like I said, I am still new to Excel stuff, so I even tried to make a
ActiveX. Registered, and used the VBA code

ActiveSheet.OleObjects.Add Classtype:=ExcelProject1.UserControl1
Link:=false

then it will say that disconnect from client.

It might be a simple answer... And i prefer using the VSTO object
instead of an ActiveX if possible, I just dont know what I am doin
wrong.

Another thing, since I am doing a test version, the usercontrol doe
not have any control within, infact, i did not add any other code i
there, it just has the base code of creating a usercontrol.
dont know if that info would hep.

thanks
Phili

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool tip for the UDFs created using vsto se add-in. parmanand Excel Worksheet Functions 1 March 12th 07 03:42 PM
VSTO - dynamic Hide/Unhide PivotItem OLAP. zeric New Users to Excel 0 January 31st 06 02:06 PM
VSTO David12345 Excel Discussion (Misc queries) 2 December 27th 05 08:14 PM
VSTO 2.0 No Name Excel Programming 1 December 8th 03 09:02 PM
Visual Studio Tools For Office(VSTO) Corebrix Excel Programming 1 September 9th 03 03:54 PM


All times are GMT +1. The time now is 07:41 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"