Back

Topic

[KB163]UserForm cannot migrate between PcVue versions 7 and 8.

Tags: Scripting, VBA

15 years ago
By RM
Options
Print
Applies to:

PcVue version 7.20 VBA.


Summary:

This article indicates how to work around an incompatibility that affects VBA projects that contain UserForms.


Solution:

When you migrate a project from PcVue version 7.20 VBA, if the mimic contains a UserForm window, the UserForm cannot be read by PcVue version 8 VBA.  Certain objects of the UserForm are not compatible between these versions. The problem arises from versions 7.20 VBA using VBA version 6.2 and version 8 VBA using VBA version 6.4.

Workaround

From version 7.20 VBA 6.2:

  1. Export the UserForm from VBA (FRM file).
  2. Remove the UserForm from the mimic and save the mimic in binary format.
  3. Reload the project from version 8.00 VBA 6.4.
  4. Import the UserForm (FRM file) to it.

By this means, the mimic and associated UserForm will work in PcVue version 8.

Note

UserForms are standard VBA objects for creating custom dialogs. They utilise ActiveX controls and are installed with Microsoft Office.


Created on: 05 Nov 2010 Last update: 13 May 2024