Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Can I insert cell values into an email message this way?

I am trying to write a message once that will go out to many people by
inserting the corresponding cel values. The code looks like this:

'This creates the email addresses for the criteria
Both = "Dear " & Range("D1").Value & ":" & vbNewLine & vbNewLine & _
"You have entered too few hours and have unsent hours for the week: " & twk
& vbNewLine &
"PRISM indicates that you entered: " & Range("M" & i).Value & " hours." &
vbNewLine & _
"PRISM indicates that you have " & Range("N" & i).Value & " unsent hours."
& vbNewLine & vbNewLine & _
"Please enter and send your time as soon as possible."

Both is declared as a string. I get an error message that says: Method
'Range' of object '_Global' failed.

Thanks,
Nicole
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Can I insert cell values into an email message this way?

The answer to this question is yes, but you have to do it (*duh*) within the
for i = /next loop otherwise Range ("A" & i) is meaningless.

"Nicole Seibert" wrote:

I am trying to write a message once that will go out to many people by
inserting the corresponding cel values. The code looks like this:

'This creates the email addresses for the criteria
Both = "Dear " & Range("D1").Value & ":" & vbNewLine & vbNewLine & _
"You have entered too few hours and have unsent hours for the week: " & twk
& vbNewLine &
"PRISM indicates that you entered: " & Range("M" & i).Value & " hours." &
vbNewLine & _
"PRISM indicates that you have " & Range("N" & i).Value & " unsent hours."
& vbNewLine & vbNewLine & _
"Please enter and send your time as soon as possible."

Both is declared as a string. I get an error message that says: Method
'Range' of object '_Global' failed.

Thanks,
Nicole

Reply
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
Email message on cell change event jknapp1005 Excel Worksheet Functions 1 March 17th 09 09:29 PM
insert email message in excel sachin Excel Discussion (Misc queries) 2 August 15th 08 10:18 AM
Insert Outlook Message into Excel cell pchoate Excel Discussion (Misc queries) 0 September 19th 07 07:34 PM
hyperlink a cell to an email message vlad Excel Programming 0 June 18th 05 02:28 PM
Insert Outlook Message into Excel cell Andy Excel Discussion (Misc queries) 1 June 17th 05 11:57 AM


All times are GMT +1. The time now is 05:33 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"