Controls on Inspector

  • Thread starter Thread starter Michael Tissington
  • Start date 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.
 
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.
 
Correct.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
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

Back
Top