adding values to combo box

M

mark

im have no visual basic knowledge at all and i have been
set a task to create a custom for, i have pretty much
worked out most things that i have needed to do except
this.

i have put values in a combobox so far i just want actions
on them now.

lets say i have populated my combobox with:
'example 1'
'example 2'
'example 3'
'example 4'

what i want to happen when you select one is the email to
cc a copy of the email to the property of the value.

eg, you click 'example 1' and it ccs the email
to '(e-mail address removed)' and so on.

im unsure how to do this and wouldnt have a clue where to
start.

if you can help me that would be good.

(e-mail address removed)
 
H

Hollis D. Paul

eg, you click 'example 1' and it ccs the email
to '(e-mail address removed)' and so on.

im unsure how to do this and wouldnt have a clue where to
start.
Basically, at the click event for the combobox, assuming you have not
bound the combobox to a field, you get an index value from which you
can extract the value from the list in the combobox. You can then put
the index value into a field, and the list value into a field, and call
a subroutine, of your own construction, to do whatever you want done,
now that you know what these two values. So, you are not as close to
being done as you think.

You can use the Outlook Object Model to create a new mail message,
stuff the to field with the values from the combo box, then add all the
other values that you want in the message, and send it. Or you can use
CDO to do the same, using the CDO object model. Either will work, but
both may invoke the security prompt. If you don't want that to happen,
then you need some Redemption objects: find out about that from
www.dimastr.com.

Hollis D. Paul [MVP - Outlook]
(e-mail address removed)
Using Virtual Access 4.52 build 277 (32-bit), Windows 2000 build 2195
http://search.support.microsoft.com/kb/c.asp?FR=0&SD=TECH&LN=EN-US

Mukilteo, WA USA
 

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

Top