LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 363
Default Emailing Range in Body CC Problem

I have a Workbook set up with a Send macro as below which places the Range("A51:P103") into the body
of the email.
But the problem i am having is related to the CC -ing.
If a sheet is sent and CC to another person, the next time a sheet needs to be emailed, the CC
address from the previous sent sheet is also included.
I am not sure if this is a Excel or a Outlook glitch though.

Is there a solution to add to this to solve it?
Has anyone else had this problem ?

Corey....

Sub Send()
Call Unprotect
Call Hiderows
Call Unprotect
'Call Hidecolumns
Application.DisplayAlerts = False
' Select the range of cells on the active worksheet.
ActiveSheet.Range("A51:P103").Select

' Show the envelope on the ActiveWorkbook.
ActiveWorkbook.EnvelopeVisible = True

On Error GoTo Macro

With ActiveSheet.MailEnvelope
.Introduction = "Please accept this an Official Email..."
.Item.To = Range("J64")
.Item.CC = Range("J65")
.Item.Subject = Range("R66")
.Item.Send 'Display
Range("R63").Value = Date & " " & Time
Call Unhiderows

Range("A1").Select
Macro:
Call Unhiderows
End With
Call Protect
Range("A1").Select
End Sub


 
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
Mailing an excel range in the body of an e-mail Andy Tallent Excel Discussion (Misc queries) 4 April 25th 12 10:14 AM
Emailing a template and keeping same layout as the message body [email protected] Excel Discussion (Misc queries) 0 August 6th 08 10:16 PM
Emailing range for Excel and adding body text Peter Vaughton Excel Programming 1 November 15th 06 05:39 PM
Any body know how to count the cilumns in a range Tom Weston Excel Discussion (Misc queries) 1 February 13th 06 03:27 PM
Code problem emailing range as html in Outlook body Alan Campbell Excel Programming 3 August 25th 04 06:59 PM


All times are GMT +1. The time now is 05:25 AM.

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

About Us

"It's about Microsoft Excel"