Solved

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

Posted on 2010-08-20
3
341 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
  • 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot 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…

777 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