Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Char(10) or Char(13) in body of email

I'm trying to use this snippet of code in the body of an email, but I get an
error message saying that the function is not defined.

'some stuff here...
Please let me know if you have any questions!" _
& CHAR(13) & _
'some stuff here...

What am I doing wrong?

Thanks,
Ryan--

--
RyGuy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Char(10) or Char(13) in body of email

On Nov 13, 9:22*am, ryguy7272
wrote:
I'm trying to use this snippet of code in the body of an email, but I get an
error message saying that the function is not defined.

'some stuff here...
Please let me know if you have any questions!" _
& CHAR(13) & _
'some stuff here...

What am I doing wrong?

Thanks,
Ryan--

--
RyGuy


Replace CHAR(13) with Chr(13)
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,836
Default Char(10) or Char(13) in body of email

This works! Thanks so much. One more quick question. How do I get the
entire contents of a cell into the body of the email? I am using this:
..Body = "Dear " & cell.Offset(0, -1).Text

It gives me just the text part of the email, but no numbers. I have text
and numbers together in several cells, such as andy12 and fred22. I get andy
and fred only! I tried this:
..Body = "Dear " & cell.Offset(0, -1).Value

Results were the same.

Please advise.

Thanks so much!!
Ryan---

--
RyGuy


"UglyChicken" wrote:

On Nov 13, 9:22 am, ryguy7272
wrote:
I'm trying to use this snippet of code in the body of an email, but I get an
error message saying that the function is not defined.

'some stuff here...
Please let me know if you have any questions!" _
& CHAR(13) & _
'some stuff here...

What am I doing wrong?

Thanks,
Ryan--

--
RyGuy


Replace CHAR(13) with Chr(13)

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 Hyperlink TO limited to 10 char Don Excel Discussion (Misc queries) 3 February 11th 09 09:46 PM
FIND 1 char in cell of any 3 char =True Nastech Excel Discussion (Misc queries) 5 April 26th 08 02:17 PM
8500 cells with phone number(7 char.), wishing to add area code (10 char.) [email protected] Excel Discussion (Misc queries) 6 March 10th 06 05:13 PM
Getting rid of char(160) Biff Excel Programming 2 March 10th 06 01:20 AM
How to removed the first three char and last char in XLS Lillian Excel Programming 1 December 21st 04 12:34 AM


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

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"