Solved

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

Posted on 2010-08-20
3
336 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
Comment Utility
0
 

Author Comment

by:Grizzler
Comment Utility
That worked
0
 

Author Closing Comment

by:Grizzler
Comment Utility
Got Answer
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now