Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying from excel to txt + formatting.

I have to copy an excel file into a txt file.
But when i copy paste columns(data) from excel and paste it in notepad
I get tab's between the two columns data.I need it to be a space.

eg.when i copy 2|3|4 (data in columns 2,3,4)
i get 2 3 4 (with tabs in between)
i need it to be 2 3 4.(with a single space in between numbers)

Could some one help me out with a fast way to do it.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Copying from excel to txt + formatting.

You could shrink your column widths and file|saveas and choose:
formatted text (space delimited) (*.prn)

(I change my fonts to Courier New (non-proportional) just so I can see if it's
close when I start.)

You could use a helper column:

=a1&" "&b1&" "&c1&" "&d1
copy down the column
then copy those cells and paste into Notepad and save from there.

Or you could use a macro.

Here are three sites that you could steal some code from:

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

(You may be happy with Earl's version--right out of the box!)

Shekhar Thakurdesai wrote:

I have to copy an excel file into a txt file.
But when i copy paste columns(data) from excel and paste it in notepad
I get tab's between the two columns data.I need it to be a space.

eg.when i copy 2|3|4 (data in columns 2,3,4)
i get 2 3 4 (with tabs in between)
i need it to be 2 3 4.(with a single space in between numbers)

Could some one help me out with a fast way to do it.


--

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
formatting of charts changes when copying from excel 2000 to 200. philall86 Charts and Charting in Excel 1 June 27th 09 08:33 PM
Keep Word formatting when copying text to Excel Beckyblanco Excel Discussion (Misc queries) 1 December 17th 08 03:34 PM
Copying Excel page formatting to other pages crazycanuck New Users to Excel 1 May 5th 06 03:53 PM
excel not copying formulas/formatting to next row? neowok Excel Worksheet Functions 0 November 16th 04 04:22 PM
excel not copying formulas/formatting to next row? neowok Excel Worksheet Functions 2 November 16th 04 04:08 PM


All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"