PC Review


Reply
Thread Tools Rate Thread

Displaying quotation marks

 
 
Craig Sink
Guest
Posts: n/a
 
      7th Sep 2005
How do I display quotation marks as text? For example:

="hello"&" Bob"
displays:
hello Bob

How do I display:
hello "Bob"

Thanks for any input,

Craig S.
FDI


 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      7th Sep 2005
try
="hello "&"""Bob"""


--
Don Guillett
SalesAid Software
(E-Mail Removed)
"Craig Sink" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> How do I display quotation marks as text? For example:
>
> ="hello"&" Bob"
> displays:
> hello Bob
>
> How do I display:
> hello "Bob"
>
> Thanks for any input,
>
> Craig S.
> FDI
>
>



 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      7th Sep 2005
You can use

="hello"&"""Bob"""

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Craig Sink" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> How do I display quotation marks as text? For example:
>
> ="hello"&" Bob"
> displays:
> hello Bob
>
> How do I display:
> hello "Bob"
>
> Thanks for any input,
>
> Craig S.
> FDI
>



 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      7th Sep 2005
Double them:

="hello ""Bob"""

In article <(E-Mail Removed)>,
"Craig Sink" <(E-Mail Removed)> wrote:

> How do I display quotation marks as text? For example:
>
> ="hello"&" Bob"
> displays:
> hello Bob
>
> How do I display:
> hello "Bob"
>
> Thanks for any input,
>
> Craig S.
> FDI

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      7th Sep 2005
And one more way if it really gets confusing...

msgbox "hello " & chr(34) & "Bob" & chr(34)



Craig Sink wrote:
>
> How do I display quotation marks as text? For example:
>
> ="hello"&" Bob"
> displays:
> hello Bob
>
> How do I display:
> hello "Bob"
>
> Thanks for any input,
>
> Craig S.
> FDI


--

Dave Peterson
 
Reply With Quote
 
Craig Sink
Guest
Posts: n/a
 
      7th Sep 2005
I actually had to "triple" them. Like this: ="hello"&A3&"""Bob"""
The reason is because I had to enter quotations to specify the text, and
then 2 more quotations to get the actual quotations. I think that made
sense.

Thanks for the help,
Craig, S


 
Reply With Quote
 
Craig Sink
Guest
Posts: n/a
 
      7th Sep 2005
Right, you already said that. I didn't read close enough!!

Thanks,
Craig S.


 
Reply With Quote
 
0-0 Wai Wai ^-^
Guest
Posts: n/a
 
      7th Sep 2005

It seems weird that we need 3 (instead of 2) pairs to make it.
The first one is used to indicate there are strings.
Then the second one should make it clear that they are strings.
Strange to say, we need to add 1 more.

Is there any good reason to explain this behaviour?


 
Reply With Quote
 
Bill Sharpe
Guest
Posts: n/a
 
      8th Sep 2005
0-0 Wai Wai ^-^ wrote:
> It seems weird that we need 3 (instead of 2) pairs to make it.
> The first one is used to indicate there are strings.
> Then the second one should make it clear that they are strings.
> Strange to say, we need to add 1 more.
>
> Is there any good reason to explain this behaviour?
>
>

See Dave Peterson's post. The double quotes together represent chr(34)
and the single quotes around Bob specifies that the word is a string.

At least I think that how MS explains it.

Bill
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My question marks, apostrophies and quotation marks are weird. pj Microsoft Word Document Management 1 10th Jan 2008 09:26 AM
Why do quotation marks change to question marks in e-mails receiv. =?Utf-8?B?SiBIZXJuZG9u?= Microsoft Outlook Discussion 0 30th May 2007 08:01 PM
quotation marks =?Utf-8?B?Sm9obkY=?= Microsoft Excel Worksheet Functions 7 5th Feb 2006 09:33 PM
Punctuation marks and quotation marks 29erKilo Microsoft Word New Users 8 19th Aug 2004 02:35 PM
quotation marks Microsoft Excel Misc 9 30th Jan 2004 08:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:50 PM.