Excel VBA array of strings to Outlook email "To" field -


i trying create macro take column of email addresses excel sheet , populate "to" field in outlook email. have basics working, , able create new outlook email message various field values have specified - however, cannot figure out how populate multiple email addresses "to" field, single email.

as of right now, able create array of desired email addresses, can't figure out how populate array values outlook "to" field.

this based on eugene's answer, edited include excel implementation

sub createstatusreporttoboss(addrng excel.range)     dim myitem outlook.mailitem     dim myrecipient outlook.recipient     set myitem = application.createitem(olmailitem)   each cell in addrng      set myrecipient = myitem.recipients.add(cell.value)   next cell     myitem.subject = "status report"     myitem.display   end sub 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -