Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating Com object for excel using vb.net

How can i create a com object so that i can embed into excel worksheet

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating Com object for excel using vb.net

1) Go to VS.net and create a new classlibrary project under visua
basic.
2) delete the classfile that it generates and add a new item: a co
class item and give it whatever name you feel appropriate
3) VS.net will automaticcally create the headers/contsructors and th
guids...not to mention it will auto turn on the register as co
component in your project props
4) build your solution and then in excel go to the vba editor and add
reference to either the .dll or the .tlb file
5) create an instance of your com dll class such as
dim myClassInstance as new myDll.myClass
6) to call a function in your dll all you need to do is
myClassInstance.myDllFunction()
7)Tada :-

--
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
Creating Excel Object From C# Jim Heavey Excel Discussion (Misc queries) 0 January 17th 06 03:02 PM
Creating Worksheet using Server Object Olivia Towery Excel Worksheet Functions 0 September 6th 05 05:28 PM
Creating a picture/object David Rivera Excel Discussion (Misc queries) 1 July 16th 05 12:35 AM
Creating Worksheet using Server Object Olivia Towery Excel Worksheet Functions 1 May 17th 05 06:12 PM
Creating a Range object in .Net Gary[_14_] Excel Programming 0 January 6th 04 10:46 PM


All times are GMT +1. The time now is 07:20 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"