Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8727307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:24:44+00:00 2026-06-13T08:24:44+00:00

What I have is a C#, .NET 4.5 ComVisible(true) library that is being consumed

  • 0

What I have is a C#, .NET 4.5 ComVisible(true) library that is being consumed by an Excel 2010 VBA client.

I have two questions:

1 –

In VBA when I add a reference to my tlb from “Tools -> References” I get the “Available References” dialog which displays my library reference name as the same name of my .tlb file but without the extension. If my .tlb file has a space, then it will be replaced with an underscore in the dialog.

The following thread discusses a similar issue, but from a VBA project point of view:
How can I put spaces in my VBA project name?

From my C# project, how can I control the name that will appear in “Available References”
(including using spaces)?

enter image description here

2 –

With regards to the namespace of my library, how can I choose a namespace that is independent from my reference name and my .tlb name? e.g:

Dim oMyTest As New MyCustomNameSpace.MyTest

I have tried the following in C#, but it didn’t work, it was always picking up the .tlb filename as the namespace:

[ProgId("MyCustomNameSpace.MyTest")]
public class MyTest: IMyTest

What do I need to change in C# to control my namespace within VBA?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:24:46+00:00Added an answer on June 13, 2026 at 8:24 am

    The conversion from assembly to type library is described in detail in this MSDN Library section. The "Exported Assembly Conversion" article has the relevant details that you are asking about. Quoting them:

    Assembly names often contain periods, which are not permitted in type library names. The export process converts periods in the name field of an assembly to underscores.

    The export process copies the AssemblyDescriptionAttribute if applied to an assembly at design time, to the helpstring or DocString associated with a type library. Neither the HelpFile field nor the HelpContext field in the type library is set. None of the LIBFLAGS in the type library is set.

    Note that the [assembly:AssemblyDescription] attribute in ASsemblyInfo.cs uses an empty string by default. You can edit it directly or use Project + Properties, Application tab, Assembly Information button.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have .NET assembly with ComVisible class. Some days ago (I can find that
I have a .net object that I want to use in Excel. I have
I have always marked my .NET assemblies as visible to COM with [assembly: ComVisible(true)]
I have created com object for legacy apps (.net framework 3.5) [ComVisible(true), Guid(...)] [InterfaceType(ComInterfaceType.InterfaceIsDual)]
I have a COM visible .NET DLL file that is being used as an
I have .Net client that sends files. How can i use PHP web service
I have .NET application that is hosted on IIS 6.1 It is impossible to
I have .Net service that listens on single port over TCP protocol. Clients connect
I have installed Mono 2.10.8 (that should have .NET 4 support) and MonoDevelop 2.8.6.4
Does .NET have some type of built in function that allows filtering on Gridviews?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.