LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
JT JT is offline
external usenet poster
 
Posts: 234
Default e-mail issue

I'm using the code below to send e-mails to different cost centers. With
this code, the user will get the Outlook security message and they have to
click "ok" to send the message. This is okay because there may be situations
where they will not want to send the message.

The part I'm having trouble with is when they click "no" to not send the
e-mail. I'm looking for suggestions on how to close the e-mail being
displayed and move to the next record.

Thanks for your help....


Do Until eNumb BrNum

vHTMLString = "<HTML<BODY" _
& "<font face=Arial" _
& "<font size=3" _
& "Branch: " & EMdata1(eNumb) _
& "<br Date: " & EMdata2(eNumb) _
& "<br Deposit: " & EMdata3(eNumb) _
& "<br Days Outstanding: " & EMdata4(eNumb) _
& "<br Balance: " & EMdata5(eNumb) & "<br" _
& eMsg

With myitem

For OthNum = 1 To UBound(Addrdata1)
If Addrdata1(OthNum) = EMdata1(eNumb) Then
.To = Addrdata2(OthNum)
Exit For
End If
Next

.Subject = SubjectLine
.HTMLBody = vHTMLString
.Display
.Send

End With

--
JT
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
E-Mail Issue in Excel Susan Excel Discussion (Misc queries) 5 January 2nd 09 08:25 PM
Issue with mail merge date field macropod Excel Programming 0 September 21st 07 10:21 AM
Mail Merge issue please HELP riri Excel Programming 1 June 8th 07 10:45 AM
Mail Merge Formatting Issue [email protected][_2_] Excel Programming 0 November 16th 06 03:06 PM
Mail Merge issue b_walls1 Excel Discussion (Misc queries) 4 April 2nd 06 08:07 PM


All times are GMT +1. The time now is 10:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"