PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Populating listbox

Reply

Populating listbox

 
Thread Tools Rate Thread
Old 13-03-2006, 07:32 PM   #1
Syl
Guest
 
Posts: n/a
Default Populating listbox


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.

  Reply With Quote
Old 13-03-2006, 07:56 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Populating listbox

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Syl" <syl.news2@sympatico.ca> wrote in message news:1142278350.080402.150030@z34g2000cwc.googlegroups.com...
> 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.
>

  Reply With Quote
Old 13-03-2006, 08:23 PM   #3
Syl
Guest
 
Posts: n/a
Default Re: Populating listbox

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.

  Reply With Quote
Old 13-03-2006, 08:42 PM   #4
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: Populating listbox

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Syl" <syl.news2@sympatico.ca> wrote in message news:1142281416.737967.176470@j33g2000cwa.googlegroups.com...
> 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.
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off