Solved

Need help creating .NET dll or tlb for Excel 2003 VBA to use

Posted on 2010-08-20
3
348 Views
Last Modified: 2012-05-10
I want to create a simple dll in vb.net express and access it from VBA in EXCEL 2003. I have registered the dll with regasm.exe /tlb. I can now add a reference to setjob.tlb in Excel vba

simple example code

Public class1
     public sub helloworld()
          msgbox "helloworld"
    end sub
end class

The vba object browser shows the class1 but not the sub helloworld

I have tried using declare and lib with similar results. Not able to find sub name....

How do I create a consumable .net 3.5 dll for excel2003 to use?
0
Comment
Question by:Grizzler
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
3 Comments
 

Accepted Solution

by:
Grizzler earned 0 total points
ID: 33486740
0
 

Author Comment

by:Grizzler
ID: 33487054
That worked
0
 

Author Closing Comment

by:Grizzler
ID: 33487062
Got Answer
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question