Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
niz
 
Posts: n/a
Default copy/paste excel to texteditor -> multi-line text cells gain unwanted double-quotes

i have a formula composed of 3 lines in one cell:

=" IF c_MSISDN_NDC" & $E3 & " IS NOT NULL THEN
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +" & $E3 & ", 1,
c_oper_name);');
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +" & $E3 & ", 2,
c_oper_name);');"

this produces a text string, e.g. as below:

" IF c_MSISDN_NDC70 IS NOT NULL THEN
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +70, 1, c_oper_name);');
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +70, 2, c_oper_name);');"

when i try to copy/paste it into a text editor, i get the following:

" IF c_MSISDN_NDC69 IS NOT NULL THEN
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +69, 1, c_oper_name);');
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +69, 2, c_oper_name);');"

as you can see there are unwanted double-quotes at the beginning and
end of the line. this is nothing to do with the texteditor as i get the
double-quotes in notepad also (but there i dont get the linebreaks i
need so i'm using an alternative).

i also tried copy/paste-as-special the results of my formula to another
column, then copy/pasting that new column. same result as above, still
double-quotes. this issue only seems to occur where a cell contains
linebeaks.

any ideas how to not get the double-quotes????

--
[please reply to group]

  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think it does have something to do with the receiving application.

I got the double quotes in NotePad and UltraEdit (another text editor). But I
didn't get them when I pasted into MSWord or WordPad.

And then I could copy from MSWord or Wordpad into NotePad and no double quotes
showed up.

Another option may be to write to a text file directly...

Maybe you could use a macro that writes your data:

Earl Kiosterud's Text Write program:
www.smokeylake.com/excel
(or directly: http://www.smokeylake.com/excel/text_write_program.htm)

Chip Pearson's:
http://www.cpearson.com/excel/imptext.htm

J.E. McGimpsey's:
http://www.mcgimpsey.com/excel/textfiles.html

======
Earl's may be sufficient right out of the box. He supports lots of options.

niz wrote:

i have a formula composed of 3 lines in one cell:

=" IF c_MSISDN_NDC" & $E3 & " IS NOT NULL THEN
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +" & $E3 & ", 1,
c_oper_name);');
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +" & $E3 & ", 2,
c_oper_name);');"

this produces a text string, e.g. as below:

" IF c_MSISDN_NDC70 IS NOT NULL THEN
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +70, 1, c_oper_name);');
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +70, 2, c_oper_name);');"

when i try to copy/paste it into a text editor, i get the following:

" IF c_MSISDN_NDC69 IS NOT NULL THEN
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +69, 1, c_oper_name);');
utl_file.put_line (l_file_handle, '
'||c_pkg||LOWER(l_curr_table)||'(c_new_point +69, 2, c_oper_name);');"

as you can see there are unwanted double-quotes at the beginning and
end of the line. this is nothing to do with the texteditor as i get the
double-quotes in notepad also (but there i dont get the linebreaks i
need so i'm using an alternative).

i also tried copy/paste-as-special the results of my formula to another
column, then copy/pasting that new column. same result as above, still
double-quotes. this issue only seems to occur where a cell contains
linebeaks.

any ideas how to not get the double-quotes????

--
[please reply to group]


--

Dave Peterson
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
get SQL Server text data type into Excel pivot table Lee@360Commerce Excel Discussion (Misc queries) 0 August 19th 05 11:37 PM
Truncated text when copying text from one excel doc to another sunny pete Excel Discussion (Misc queries) 3 August 12th 05 02:11 PM
How do I set Excel cell format to "Text" from VB.NET? John Brock Excel Discussion (Misc queries) 8 July 26th 05 04:36 AM
pivot table multi line chart souris Charts and Charting in Excel 2 December 7th 04 03:56 AM
How can I asign a number value to a text line in Excel? AIF_GoofyDo2 Charts and Charting in Excel 0 December 6th 04 01:19 AM


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