Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Help with combining strings

Please I need immediate help to understand this. I store values in rmarkfor,
qtenum,dlrname -- I would like the subject line of the email to read like
this:
To: Iccquote
Subject Quote # (the value of qtenum), (value of dlrname), (value of rmarkfor)

But it keeps giving me a compile error.

Set rmarkfor = Range("C5")
Set qtenum = Range("F5")
Set dlrname = Range("C7")
Set alltext = "Qte #:" & qtenum & "-" & dlrname & rmarkfor
With ExlPpsl
.SendMail "Iccquote", _
& alltext
End With
  #2   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default Help with combining strings

When declaring your variables use strings:
i.e. Dim qtenum as String

When setting your variables force a text conversion for each cell.
i.e. qtenum = Cstr(Range("F5"))

Finally, do not use the word "Set" when assigning your variables.

--
Les Torchia-Wells


"Rookie_User" wrote:

Please I need immediate help to understand this. I store values in rmarkfor,
qtenum,dlrname -- I would like the subject line of the email to read like
this:
To: Iccquote
Subject Quote # (the value of qtenum), (value of dlrname), (value of rmarkfor)

But it keeps giving me a compile error.

Set rmarkfor = Range("C5")
Set qtenum = Range("F5")
Set dlrname = Range("C7")
Set alltext = "Qte #:" & qtenum & "-" & dlrname & rmarkfor
With ExlPpsl
.SendMail "Iccquote", _
& alltext
End With

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Help with combining strings

How does that get me the results of the subject line?

"Les" wrote:

When declaring your variables use strings:
i.e. Dim qtenum as String

When setting your variables force a text conversion for each cell.
i.e. qtenum = Cstr(Range("F5"))

Finally, do not use the word "Set" when assigning your variables.

--
Les Torchia-Wells


"Rookie_User" wrote:

Please I need immediate help to understand this. I store values in rmarkfor,
qtenum,dlrname -- I would like the subject line of the email to read like
this:
To: Iccquote
Subject Quote # (the value of qtenum), (value of dlrname), (value of rmarkfor)

But it keeps giving me a compile error.

Set rmarkfor = Range("C5")
Set qtenum = Range("F5")
Set dlrname = Range("C7")
Set alltext = "Qte #:" & qtenum & "-" & dlrname & rmarkfor
With ExlPpsl
.SendMail "Iccquote", _
& alltext
End With

  #4   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default Help with combining strings

I should have been more specific:

Dim rmarkfor As String
Dim qtenum As String
Dim dlrname As String
Dim alltext As String

rmarkfor = CStr(Range("C5"))
qtenum = CStr(Range("F5"))
dlrname = CStr(Range("C7"))
alltext = "Qte #:" & qtenum & "-" & dlrname & "," & rmarkfor
ActiveWorkbook.SendMail "Iccquote", alltext


--
Les Torchia-Wells


"Rookie_User" wrote:

How does that get me the results of the subject line?

"Les" wrote:

When declaring your variables use strings:
i.e. Dim qtenum as String

When setting your variables force a text conversion for each cell.
i.e. qtenum = Cstr(Range("F5"))

Finally, do not use the word "Set" when assigning your variables.

--
Les Torchia-Wells


"Rookie_User" wrote:

Please I need immediate help to understand this. I store values in rmarkfor,
qtenum,dlrname -- I would like the subject line of the email to read like
this:
To: Iccquote
Subject Quote # (the value of qtenum), (value of dlrname), (value of rmarkfor)

But it keeps giving me a compile error.

Set rmarkfor = Range("C5")
Set qtenum = Range("F5")
Set dlrname = Range("C7")
Set alltext = "Qte #:" & qtenum & "-" & dlrname & rmarkfor
With ExlPpsl
.SendMail "Iccquote", _
& alltext
End With

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
find and replace numeric strings in larger text strings Mr Molio Excel Worksheet Functions 8 November 9th 11 05:17 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM
Combining Text Strings - Complex ksawyers Excel Worksheet Functions 1 August 9th 05 08:11 PM
Combining text strings Hayley Excel Worksheet Functions 6 May 5th 05 12:46 AM
Finding strings within strings Rod[_6_] Excel Programming 1 December 2nd 03 05:34 PM


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