|
-
Aug 21st, 2002, 09:38 AM
#1
Thread Starter
New Member
Using VB.NET Class library in VBA
I built a Class Library named PM-Activa.dll in Visual Studio.Net using VB.NET. It works fine from within another windows application built in Visual studio.Net.
Q: How can I use it from a VBA module (Excel or Access)?
(I use Access 2000 of Excel 2000 and Windows XP Pro)
When i try to reference the file PM-Activa.ddl i get a message saying that i can't put a reference to the specified file?
-
Aug 21st, 2002, 10:20 AM
#2
You'd have to convert it into a COM wrapper. I'm not sure of everything you have to do but the upgrade wizard adds this to the start of the class:
<System.Runtime.InteropServices.ProgId("cDay_NET.cDay")> _
Public Class cDay
-
Aug 22nd, 2002, 05:35 AM
#3
Thread Starter
New Member
I understand that i have to convert it into a COM (callable?) wrapper. I searched at MSDN for more information. There was a lot of it there. Mostly about using older COM components in VB.NET. But i still have no idea of what i should do. What actions should i take with the .dll up to referencing it from within VBA?
-
Aug 22nd, 2002, 08:23 AM
#4
I dont know much about it, but you might want to look into VSA which is, I believe, the new thing to replace VBA and has .NET support so it can fully utilize .NET. I dont know much about it though, just bits and pieces Ive seen mentioned in .NET magazine.
-
Aug 22nd, 2002, 09:40 AM
#5
Thread Starter
New Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|