Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default How to do double quotes in "cell language"?

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.

Also posted in microsoft.public.excel.misc, but there does not seem to
be much action over there.

- Paul Schrum
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default How to do double quotes in "cell language"?

Paul Schrum has brought this to us :
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.

Also posted in microsoft.public.excel.misc, but there does not seem to
be much action over there.

- Paul Schrum


Try this...

Put the cell contents into a string variable and pass that as the arg
for your SendKeyin method.

Example:
Dim sz As String
sz = Cells(?, ?).Value
CadInputQueue.SendKeyin = sz

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,059
Default How to do double quotes in "cell language"?

On Dec 21, 12:11*pm, 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"


In Excel, we would write:

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

That is, a double-quote as character in a string is represented by a
pair of double-quotes in a formula.

Does that help you at all?
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default How to do double quotes in "cell language"?

On Dec 21, 5:01*pm, joeu2004 wrote:
On Dec 21, 12:11*pm, 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"


In Excel, we would write:

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

That is, a double-quote as character in a string is represented by a
pair of double-quotes in a formula.

Does that help you at all?


Yes. Someone in the .misc group gave me that answer as well, and it
works perfectly.

Thanks for your help.

- Paul

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 203
Default How to do double quotes in "cell language"?

"Paul Schrum" wrote in message
...
On Dec 21, 5:01 pm, joeu2004 wrote:
On Dec 21, 12:11 pm, 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"


In Excel, we would write:

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

That is, a double-quote as character in a string is represented by a
pair of double-quotes in a formula.

Does that help you at all?


Yes. Someone in the .misc group gave me that answer as well, and it
works perfectly.

Thanks for your help.

- Paul


Paul, I perhaps should have suggested that a cross-post to both groups
would have been preferable to the multi-post (identical postings to more
than one group) that you used. With a cross-post, everyone can see the
responses from either ng.

And yes, cross-posting is acceptable practice when not over-used.

--
Clif McIrvin

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


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
"" (double quotes with nothing between) Bob Umlas, Excel MVP Excel Discussion (Misc queries) 0 July 21st 08 10:59 PM
"" (double quotes with nothing between) Bob Phillips[_3_] Excel Discussion (Misc queries) 0 July 21st 08 10:36 PM
Inserting "quotes" around characaters in a cell Lolo79 Excel Discussion (Misc queries) 2 November 1st 07 11:52 PM
how to copy contents of a cell and remove any quotes " " jonny Excel Discussion (Misc queries) 2 January 28th 07 06:48 PM
"formula is too long" AND test for whether double-quotes are next-to text or number?? The Moose Excel Discussion (Misc queries) 2 September 14th 06 05:29 AM


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

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"