Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2010-08-20
3
Medium Priority
?
350 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

688 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