PC Review


Reply
Thread Tools Rate Thread

How to do double quotes in "cell language"?

 
 
Paul Schrum
Guest
Posts: n/a
 
      21st Dec 2010
I have cells of "built up" text strings like this:

="xy="&TEXT(O12,"0.0000")&","&TEXT(P12,"0.0000")

which, when displayed, look like this:
xy=2524950.0000,341717.0000

The problem is, I want the cells to look like this:
CadInputQueue.SendKeyin "xy=2524950.0000,341717.0000"

but Excel interprets the double-quotes as deliminters in the cell
formula. I know how to get around this in a programming language
(using escape sequences), but I can't figure it out in "cell"
language. Do you know how to do it?

Note: The format I am seeking is for copying then pasting into a
Microstation VBA module.
 
Reply With Quote
 
 
 
 
Clif McIrvin
Guest
Posts: n/a
 
      21st Dec 2010
Try

="""xy="&TEXT(O13,"0.0000")&","&TEXT(P13,"0.0000")&""""

note the final "&"

Clif

"Paul Schrum" <(E-Mail Removed)> wrote in message
news:be55bcc1-02ea-4d57-b125-(E-Mail Removed)...
>I have cells of "built up" text strings like this:
>
> ="xy="&TEXT(O12,"0.0000")&","&TEXT(P12,"0.0000")
>
> which, when displayed, look like this:
> xy=2524950.0000,341717.0000
>
> The problem is, I want the cells to look like this:
> CadInputQueue.SendKeyin "xy=2524950.0000,341717.0000"
>
> but Excel interprets the double-quotes as deliminters in the cell
> formula. I know how to get around this in a programming language
> (using escape sequences), but I can't figure it out in "cell"
> language. Do you know how to do it?
>
> Note: The format I am seeking is for copying then pasting into a
> Microstation VBA module.




--
Clif McIrvin

(clare reads his mail with moe, nomail feeds the bit bucket :-)


 
Reply With Quote
 
Paul Schrum
Guest
Posts: n/a
 
      21st Dec 2010
Clif,

Your suggestion works. Thanks a bunch.

- Paul

On Dec 21, 3:20*pm, "Clif McIrvin" <clare.nom...@gmail.com> wrote:
> Try
>
> ="""xy="&TEXT(O13,"0.0000")&","&TEXT(P13,"0.0000")&""""
>
> note the final "&"
>
> Clif
>
> "Paul Schrum" <paul.sch...@gmail.com> wrote in message
>
> news:be55bcc1-02ea-4d57-b125-(E-Mail Removed)...
>
>
>
>
>
> >I have cells of "built up" text strings like this:

>
> > ="xy="&TEXT(O12,"0.0000")&","&TEXT(P12,"0.0000")

>
> > which, when displayed, look like this:
> > xy=2524950.0000,341717.0000

>
> > The problem is, I want the cells to look like this:
> > CadInputQueue.SendKeyin "xy=2524950.0000,341717.0000"

>
> > but Excel interprets the double-quotes as deliminters in the cell
> > formula. *I know how to get around this in a programming language
> > (using escape sequences), but I can't figure it out in "cell"
> > language. *Do you know how to do it?

>
> > Note: The format I am seeking is for copying then pasting into a
> > Microstation VBA module.

>
> --
> Clif McIrvin
>
> (clare reads his mail with moe, nomail feeds the bit bucket :-)- Hide quoted text -
>
> - Show quoted text -


 
Reply With Quote
 
Clif McIrvin
Guest
Posts: n/a
 
      21st Dec 2010
"Paul Schrum" <(E-Mail Removed)> wrote in message
news:ae6faa5f-1259-4958-98ba-(E-Mail Removed)...
Clif,

Your suggestion works. Thanks a bunch.


------

Thanks for the feedback

--
Clif McIrvin

(clare reads his mail with moe, nomail feeds the bit bucket :-)


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      22nd Dec 2010
Sometimes, I'll use =char(34) for the double quote:

=char(34)& "xy="&TEXT(O12,"0.0000")&","&TEXT(P12,"0.0000") & char(34)

(It hurts my brain less <vbg>.)


On 12/21/2010 13:57, Paul Schrum wrote:
> I have cells of "built up" text strings like this:
>
> ="xy="&TEXT(O12,"0.0000")&","&TEXT(P12,"0.0000")
>
> which, when displayed, look like this:
> xy=2524950.0000,341717.0000
>
> The problem is, I want the cells to look like this:
> CadInputQueue.SendKeyin "xy=2524950.0000,341717.0000"
>
> but Excel interprets the double-quotes as deliminters in the cell
> formula. I know how to get around this in a programming language
> (using escape sequences), but I can't figure it out in "cell"
> language. Do you know how to do it?
>
> Note: The format I am seeking is for copying then pasting into a
> Microstation VBA module.


--
Dave Peterson
 
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
How to do double quotes in "cell language"? Paul Schrum Microsoft Excel Programming 4 21st Dec 2010 11:37 PM
"formula is too long" AND test for whether double-quotes are next-to text or number?? The Moose Microsoft Excel Misc 2 14th Sep 2006 05:29 AM
Bug with String Replace with /"/" or double quotes G. Microsoft C# .NET 6 28th Jan 2005 06:09 PM
Can Excel be pre-formatted to apply "double quotes" to data enter. =?Utf-8?B?UlY=?= Microsoft Excel Worksheet Functions 0 4th Nov 2004 06:09 PM
Replace double quotes (") with single quotes (') =?Utf-8?B?Z2Fy?= Microsoft VB .NET 7 2nd Jun 2004 02:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:46 PM.