Controls on Inspector

  • Thread starter Michael Tissington
  • Start date
M

Michael Tissington

Given an Inspector object, what is the quickest (performance) way of looping
through all the controls on an Outlook form looking for ComboBox controls?

Basically I need to find controls that are bound to certain properties and
then populate the controls list of possible values.

Thanks.
 
S

Sue Mosher [MVP-Outlook]

Loop through the controls and check the MatchRequired property. If it's not
a combo box, you'll get an error (which you'll need to handle). If there's
no error, it's a combo box, since MatchRequired is a property only combo
boxes support.

Don't use PossibleValues, unless you like one-off forms.

FYI, there is a separate newsgroup for Outlook forms issues --
microsoft.public.outlook.program_forms.
 
S

Sue Mosher [MVP-Outlook]

Correct.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

Use AddItem, List, or Column. (Using PossibleValues will one-off the item.)

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top