Documentation

Contents

Use Microsoft Forms 2.0 Controls

You might encounter problems when creating or using Microsoft® Forms 2.0 controls in MATLAB®. Forms 2.0 controls are designed for use with applications enabled by Microsoft Visual Basic® for Applications (VBA). An example is Microsoft Office software.

To work around these problems, use the following replacement controls, or consult article 236458 in the Microsoft Knowledge Base for further information:

Affected Controls

You might see this behavior with any of the following Forms 2.0 controls:

  • Forms.TextBox.1

  • Forms.CheckBox.1

  • Forms.CommandButton.1

  • Forms.Image.1

  • Forms.OptionButton.1

  • Forms.ScrollBar.1

  • Forms.SpinButton.1

  • Forms.TabStrip.1

  • Forms.ToggleButton.1

Replacement Controls

Microsoft recommends the following replacements:

OldNew

Forms.TextBox.1

RICHTEXT.RichtextCtrl.1

Forms.CheckBox.1

vidtc3.Checkbox

Forms.CommandButton.1

MSComCtl2.FlatScrollBar.2

Forms.TabStrip.1

COMCTL.TabStrip.1

Was this topic helpful?