A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Populating listbox



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 13th 06, 08:32 PM posted to microsoft.public.outlook.program_vba
Syl
external usenet poster
 
Posts: 2
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.

Ads
  #2  
Old March 13th 06, 08:56 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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.

  #3  
Old March 13th 06, 09:23 PM posted to microsoft.public.outlook.program_vba
Syl
external usenet poster
 
Posts: 2
Default 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.

  #4  
Old March 13th 06, 09:42 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I re-enable automatic contact populating? Loki Outlook - Using Contacts 2 March 7th 06 05:52 PM
multiselect Listbox value Michael Anderson Outlook and VBA 2 February 13th 06 04:13 AM
Get text from keyword Listbox Michael Anderson Outlook - Using Forms 4 February 6th 06 08:25 PM
Populating a drop down list from a contact list Richard Edwards Outlook - Using Forms 0 January 20th 06 11:10 AM


All times are GMT +1. The time now is 10:18 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-2025 Outlook Banter.
The comments are property of their posters.