A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How can I include quotes around a word in text string?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 2nd 06, 04:58 PM posted to microsoft.public.outlook.program_vba
Maureen
external usenet poster
 
Posts: 40
Default How can I include quotes around a word in text string?

How can I include quotes around a word in a text string?

For example:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE "REF:" NOTATION
INDICATES"

--
Maureen
  #2  
Old March 2nd 06, 05:01 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default How can I include quotes around a word in text string?

Build the text string in sections:

sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE " & _
Chr(34) & "REF:" & Chr(34) & " NOTATION INDICATES"


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Maureen" wrote in message ...
How can I include quotes around a word in a text string?

For example:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE "REF:" NOTATION
INDICATES"

--
Maureen

  #3  
Old March 2nd 06, 05:23 PM posted to microsoft.public.outlook.program_vba
Maureen
external usenet poster
 
Posts: 40
Default How can I include quotes around a word in text string?

Thank you!
--
Maureen


"Sue Mosher [MVP-Outlook]" wrote:

Build the text string in sections:

sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE " & _
Chr(34) & "REF:" & Chr(34) & " NOTATION INDICATES"


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Maureen" wrote in message ...
How can I include quotes around a word in a text string?

For example:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE "REF:" NOTATION
INDICATES"

--
Maureen


  #4  
Old March 3rd 06, 12:10 PM posted to microsoft.public.outlook.program_vba
Michael Bednarek
external usenet poster
 
Posts: 28
Default How can I include quotes around a word in text string?

On Thu, 2 Mar 2006 07:58:28 -0800, Maureen wrote in
microsoft.public.outlook.program_vba:

How can I include quotes around a word in a text string?

For example:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE "REF:" NOTATION
INDICATES"


Double them:
sTempString = "PLEASE NOTE THAT THE CODE NEXT TO THE ""REF:"" NOTATION INDICATES"

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
last string in txt file Leech Outlook and VBA 1 February 10th 06 08:13 AM
how do I include e-mail 2 and 3 in my distribution messages andy Outlook - Using Contacts 2 February 8th 06 05:34 PM
Need String from Email Subject CondtllyFrmttd Outlook and VBA 1 January 25th 06 05:26 PM
Use Part of Subject as String CondtllyFrmttd Outlook - General Queries 0 January 23rd 06 07:57 PM
string variable that contains formatting Martin Outlook and VBA 4 January 19th 06 10:49 AM


All times are GMT +1. The time now is 11:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.