nic28

Hello everyone,

I'm trying to build a .NET class with C# which would be used in Excel VBA. I read in the

O'Reilly book "Programming Excel with VBA and .NET" that, in order to do this, you had to

click on Project->Add Class... and then select "COM Class". However, "COM Class" is not one

of my options in that menu. I'm using Visual Studio 2003, so is it possible that this

feature is new in Visual Studio 2005 Or maybe you have to configure a setting to make it

appear Any help would be largely appreciated.



Re: Visual Studio Tools for Office Creating a COM compatible class in C#

CsharpNeophyte

I do not remember, I have 2005 now, but maybe instead of "COM Class" it said something like "Active X Control".

Or maybe it is only a 2005 thing.





Re: Visual Studio Tools for Office Creating a COM compatible class in C#

nic28

I don't even have the "Active X Control" option...



Re: Visual Studio Tools for Office Creating a COM compatible class in C#

Ji Zhou ĘC MSFT

Hi nic28,

"Com Class" template is only available in vb.net project. In C#, you will not see the "Com Class"

Thanks

Ji






Re: Visual Studio Tools for Office Creating a COM compatible class in C#

nic28

hey, great, thank you!