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 8039807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:41:44+00:00 2026-06-05T03:41:44+00:00

I need to call a method from a third-party .Net assembly. The object I

  • 0

I need to call a method from a third-party .Net assembly. The object I want is public and marked with the ComVisible attribute. The method I want is public, but takes an IRibbonControl . So:

[ComVisible(true)]
public class CustomUI : IRibbonExtensibility

..
..

public void SaveAs(IRibbonControl control);

Is this possible, through CreateObject in VBA for example? I would need to create an IRibbonControl in VBA, right?

  • 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-05T03:41:46+00:00Added an answer on June 5, 2026 at 3:41 am

    I know this doesn’t directly answer your question, but if you setup your Interface with DispIds and regasm it correctly, you “should” be able to use it in VBA. I usually test my COM Exposed objects using VBScript tests on machines.

    Handling VB.NET events in VB6 code

    Obviously that is VB.NET code, but the attributes etc are just a slightly different format for C#. (Let me know if you need more help on that part)

    Can you see the object register correctly in the Registry (either search for references to the dll or look for it’s class name).

    made sure you register the DLL with regasm "path to dll" /codebase /tlb If you don’t register a TLB, I think VBA will not be able to find the object.

    From VBScript try set myobj = CreateObject("FULLREFERENCE.CLASSNAME") you’ll need to experiment until you have the exact name.

    Then in your VBA code, add a referecnce to the tlb/dll depending on how you registered it.

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

Sidebar

Related Questions

I can call partial method from a view object. However, I need to call
i need to call method from several classes, but i don't know how to
I have a third party .NET Assembly and a large Java application. I need
This one has me stumped. I need to call an activity method from within
I need a help from ur side. Actually I need to call a method
I need to call a method from an exe file ProcessStartInfo startInfo = new
I need to call a method from a webservice, so I've written this code:
I am writing an application based on a COM object from a third party
I need to call a method from within a function, so I must pass
I would like to run a third party .NET assembly on my API. I

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.