Populating listbox

  • Thread starter Thread starter Syl
  • Start date Start date
S

Syl

Hi!

I am new to Outlook but i know the VBA. I need to populate many
listbox's of a VBA form. Should i create access tables or is there an
easier way to populate these lists using Outlook. What are the options
i have?

The goal of this form is to automaticly write a standardized email
message with the content of the form. (I don't want to send custom
forms in rtf format).
Is it the best way to proceed?

Thanks.
 
VBA in Outlook works the same as VBA anywhere else. Seetting the ListBox.List property to an array is probably the simplest way to populate it. Whether you want to store the list in an Access, keep it in a text file, put it in the body of an Outlook item, or hard code it into your VBA routine probably depends on the details of your scenario that you haven't shared with us.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Hi,

I plan to have in this form about 6 listbox. The content of these
listbox when populated will be a simple column containing up to 30
items. These items will be plain text of standardized phrases. Thirty
items on a single column is not a big list for access. If i could put
these lists in Outlook it would be preferable, but how?

Weather to use this form to write on a simple message it could also
write on an .oft template. Is this solution more interesting?

Thanks.
 
Since you have said very little about your actual usage scenario, it's impossible to say what might be more interesting.

Did you read my earlier response on the options available to you for storing the list data? Outlook simply doesn't care where the lists are. You have to decide what works best for your scenario and write your code to use that approach.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top