![]() |
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. |
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" wrote in message oups.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. |
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. |
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" wrote in message oups.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. |
All times are GMT +1. The time now is 07:06 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com