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

  • SEARCH
  • Home
  • 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 403465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T17:13:09+00:00 2026-05-12T17:13:09+00:00

I see plenty on the web about VSTO and automating excel from c#, but

  • 0

I see plenty on the web about VSTO and automating excel from c#, but very little to get started on wiring up a c# assembly to make it visible from Excel.

Can someone point me to some very basic info explaining how to create a COM interface, GUIDS, ComVisible etc?

  • 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-05-12T17:13:09+00:00Added an answer on May 12, 2026 at 5:13 pm

    Basically all you need to do is

    1. Make your assembly COM visible using the respective attribute in the project property Assembly version information dialog
    2. For every public class, add the following block (see [1]) of code above the class definition
    3. Register DLL using the regasm.exe tool found in the .NET 2 installation folder

    Also, make sure to add a descriptive name to both application name and description in the Assembly version information dialog (they are later used to pick the COM classes).

    [1] Block of code to add before class definition:

    [ClassInterface(ClassInterfaceType.AutoDual)]
    [ProgId("SomeNameHere")]
    [ComVisible(true)]
    [Guid("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx")]
    

    After that you should be able to use the class like any other normal COM class.

    EDIT
    It should be noted that I do not have experience with Excel and C# COM classes – I’m using C# together with Microsoft Navision, which works great the way I described above.

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

Sidebar

Related Questions

I see plenty that lead to custom authorization strategies for devise and warden, but
I can see plenty of posts about where the field description extended property lives
I see plenty of Dialog s inside a TabHost but not the other way
I can see plenty of example of how to read from a hash or
I've seen plenty of posts all around about this... but I can not, for
I see there are plenty of web sites out there that will do this,
I see plenty of answers to this riddle on here, but every time I
I searched the web on this topic and got plenty of suggestions from every
I've seen plenty of scripts on the web about hiding the address bar by
I see plenty of questions on SO about aggregation in MongoDB, however, I have

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.