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

The Archive Base Latest Questions

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

There is a UserForm with several instances of a 3rd-party ActiveX grid control (iGrid

  • 0

There is a UserForm with several instances of a 3rd-party ActiveX grid control (iGrid by 10Tec). We have a sub that inits every grid using the same statements:

Sub SetupIgrid(ig as iGrid)
   ig.RowMode = True
   ig.MultiSelect = True
   ig.Appearance = igAppearanceFlat
   ig.Editable = False
End Sub

We cannot pass an iGrid instance to this sub – Excel VBA always displays the ‘type mismatch’ error in calls like this:

SetupIgrid igAuds

Nothing other helped. For instance, we can pass an iGrid like a Variant or Object parameter, but when we try to extract the real iGrid type from it, we get the same type mismatch:

Sub SetupIgrid(igObj as Object)
   Dim ig as iGrid
   Set ig = igObj

Even if we use a hack to pass a Long pointer to iGrid we get with ObjPtr and then convert it back to the iGrid type with the API CopyMemory, MS Excel VBA cannot access the iGrid members.

The key point of this task is to have the real iGrid object in the SetupIgrid sub to use the IntelliSense feature. Now we can have it obly as Object (Variant) or something else, but sure this does not give us the IntelliSense list when we press dot.

  • 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-12T08:13:53+00:00Added an answer on June 12, 2026 at 8:13 am

    This is because controls were not intended to be passed outside of their host in this manner. What is being passed “behind the scenes” is the wrapper’s early-bound “Extender” control which, in turn, causes the Type Mismatch you’re seeing.

    There is a more full treatment of this issue here from Microsoft.

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

Sidebar

Related Questions

I have a Sub within my application that is currently located within a userform
I have a VBA Sub that create and handle an array: Option Base 1
I have a UserForm with some textbox entry fields on it that are enabled/disabled
I have an Excel2010 VBA userform that has one comboBox, from which the user
I have an excel UserForm that creates textboxes during execution time. code as follows;
I have a userform that I have created that contains a number of TextBoxes.
I have a UserForm that loads, but when I click the cancel button it
I have created a UserForm where the user is required to fill-in three fields.
There is a moment in my app, that I need to force to show
There is a column that exists in 2 tables. In table 1, this column

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.