Results 1 to 4 of 4

Thread: VB6 ActiveX isn't displayed in Microsoft Office UserForms

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2014
    Posts
    94

    VB6 ActiveX isn't displayed in Microsoft Office UserForms

    I have a VB6 ActiveX control. When I open the VBA environment in Microsoft Word/Excel and create a new UserForm, I can place this ActiveX control on the form, change its properties, write code in the form's events, etc. - no problems. Ok, I save the solution as docm/xlsm file and close it. But when I open the solution again, the control is not displayed on the UserForm at design time and run time. The best thing I can do is to click the area occupied by the control and see it framed with a dotted rectangle:

    Name:  2021-10-11_16h40_06.jpg
Views: 158
Size:  29.4 KB

    This does not happen to other ActiveX controls like Microsoft TreeView from the VB6 Common Controls pack. You can see it on the picture above at the right.

    Do I need to support a special interface to make my control work in VBA UserForms? I implemented IObjectSafety, but it seems it has nothing to do with VBA UserForms. Digital signing also does not help.

  2. #2
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,749

    Re: VB6 ActiveX isn't displayed in Microsoft Office UserForms

    Try the registration-free loading control, that's how I did it.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2014
    Posts
    94

    Re: VB6 ActiveX isn't displayed in Microsoft Office UserForms

    How do you do that? And why we can't make this work for controls registered in the registry the traditional way?

  4. #4
    PowerPoster
    Join Date
    Jan 2020
    Posts
    3,749

    Re: VB6 ActiveX isn't displayed in Microsoft Office UserForms

    I used to load controls without registration and found that the loaded controls could not be displayed. The method is to maximize and then restore. Similar to this, it is also possible that Microsoft has changed too much, resulting in worse compatibility.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width