Hello I copied the code below. Now is it possible to change the line
Subj = "Your Annual Bonus"
Here is the thing, the body of the e mail will be the same for
everyone but the subject will be different. How do I do that? thanks

Sub SendEmail()
Dim cell As Range
Dim Subj As String
Dim EmailAddr As String
Dim Recipient As String
Dim Bonus As String
Dim Msg As String
Dim HLink As String
For Each cell In Columns("B").Cells.SpecialCells(xlCellTypeConstants)
If cell.Value Like "*@*" Then
'Get the data
Subj = "Your Annual Bonus"
Recipient = cell.Offset(0, -1).Value
EmailAddr = cell.Value
Bonus = Format(cell.Offset(0, 1).Value, "$0,000.")V

Re: e mail same body different subject by Ron

Ron
Sat May 10 11:34:29 CDT 2008

Hi Marilyn

In which column is the subject information ?



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Marilyn" <Marilyn@discussions.microsoft.com> wrote in message news:185F64F3-E238-4D16-8CBF-017BEA22BDF1@microsoft.com...
> Hello I copied the code below. Now is it possible to change the line
> Subj = "Your Annual Bonus"
> Here is the thing, the body of the e mail will be the same for
> everyone but the subject will be different. How do I do that? thanks
>
> Sub SendEmail()
> Dim cell As Range
> Dim Subj As String
> Dim EmailAddr As String
> Dim Recipient As String
> Dim Bonus As String
> Dim Msg As String
> Dim HLink As String
> For Each cell In Columns("B").Cells.SpecialCells(xlCellTypeConstants)
> If cell.Value Like "*@*" Then
> 'Get the data
> Subj = "Your Annual Bonus"
> Recipient = cell.Offset(0, -1).Value
> EmailAddr = cell.Value
> Bonus = Format(cell.Offset(0, 1).Value, "$0,000.")V

Re: e mail same body different subject by Marilyn

Marilyn
Sat May 10 15:58:10 CDT 2008

Thanks Ron
subject information will be on column c



"Ron de Bruin" wrote:

> Hi Marilyn
>
> In which column is the subject information ?
>
>
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Marilyn" <Marilyn@discussions.microsoft.com> wrote in message news:185F64F3-E238-4D16-8CBF-017BEA22BDF1@microsoft.com...
> > Hello I copied the code below. Now is it possible to change the line
> > Subj = "Your Annual Bonus"
> > Here is the thing, the body of the e mail will be the same for
> > everyone but the subject will be different. How do I do that? thanks
> >
> > Sub SendEmail()
> > Dim cell As Range
> > Dim Subj As String
> > Dim EmailAddr As String
> > Dim Recipient As String
> > Dim Bonus As String
> > Dim Msg As String
> > Dim HLink As String
> > For Each cell In Columns("B").Cells.SpecialCells(xlCellTypeConstants)
> > If cell.Value Like "*@*" Then
> > 'Get the data
> > Subj = "Your Annual Bonus"
> > Recipient = cell.Offset(0, -1).Value
> > EmailAddr = cell.Value
> > Bonus = Format(cell.Offset(0, 1).Value, "$0,000.")V
>

Re: e mail same body different subject by Ron

Ron
Sat May 10 18:31:08 CDT 2008

Hi Marilyn

Use

Subj = cell.Offset(0, 1).Value


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Marilyn" <Marilyn@discussions.microsoft.com> wrote in message news:DFCEDD4D-7D77-4A55-BD51-F5FA18703BC7@microsoft.com...
> Thanks Ron
> subject information will be on column c
>
>
>
> "Ron de Bruin" wrote:
>
>> Hi Marilyn
>>
>> In which column is the subject information ?
>>
>>
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "Marilyn" <Marilyn@discussions.microsoft.com> wrote in message news:185F64F3-E238-4D16-8CBF-017BEA22BDF1@microsoft.com...
>> > Hello I copied the code below. Now is it possible to change the line
>> > Subj = "Your Annual Bonus"
>> > Here is the thing, the body of the e mail will be the same for
>> > everyone but the subject will be different. How do I do that? thanks
>> >
>> > Sub SendEmail()
>> > Dim cell As Range
>> > Dim Subj As String
>> > Dim EmailAddr As String
>> > Dim Recipient As String
>> > Dim Bonus As String
>> > Dim Msg As String
>> > Dim HLink As String
>> > For Each cell In Columns("B").Cells.SpecialCells(xlCellTypeConstants)
>> > If cell.Value Like "*@*" Then
>> > 'Get the data
>> > Subj = "Your Annual Bonus"
>> > Recipient = cell.Offset(0, -1).Value
>> > EmailAddr = cell.Value
>> > Bonus = Format(cell.Offset(0, 1).Value, "$0,000.")V
>>