Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Text import with line wraps

Hi all,

I have a tab delimited file that I create, which I will open and import into
Excel. Some of the fields are very wide, so I want to embedd characters that
will force a line wrap when Excel imports the file. I have tried embedding
hex 0A (char (10)), as one might in an Excel formula, but that just forces
new cells, like a tab (char(09)) would.

Thanks all.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Text import with line wraps

I'd use a unique character--one that's never used anywhere else (maybe the
vertical bar |).

Then I'd import the text file and add a couple of steps
#1.
Select all the cells
edit|replace
what: |
with: (alt-enter)
replace all

Hold the control key while hitting the j key. You may not see anything, but try
it. ctrl-j is the same as alt-enter or =char(10) or vblf or ...

#2. If you see a small square where that | was, you'll have to change the
format:
Select the range to fix
Format|cells|Alignment tab|check Wrap Text




HKAPGMR wrote:

Hi all,

I have a tab delimited file that I create, which I will open and import into
Excel. Some of the fields are very wide, so I want to embedd characters that
will force a line wrap when Excel imports the file. I have tried embedding
hex 0A (char (10)), as one might in an Excel formula, but that just forces
new cells, like a tab (char(09)) would.

Thanks all.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Text import with line wraps



"Dave Peterson" wrote:

I'd use a unique character--one that's never used anywhere else (maybe the
vertical bar |).

Then I'd import the text file and add a couple of steps
#1.
Select all the cells
edit|replace
what: |
with: (alt-enter)
replace all

Hold the control key while hitting the j key. You may not see anything, but try
it. ctrl-j is the same as alt-enter or =char(10) or vblf or ...

#2. If you see a small square where that | was, you'll have to change the
format:
Select the range to fix
Format|cells|Alignment tab|check Wrap Text




HKAPGMR wrote:
Thanks David, I can see that will probably work. I was hoping to not actually have to touch it all after the import, but this is better than nothing and preserves the control I want as to what wraps where!!

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
where text wraps in a cell, how can the row height be auto set? Stephen Sandor Excel Worksheet Functions 25 May 10th 10 07:57 PM
Can you create form in Excel & text wraps across several columns? quiana Excel Worksheet Functions 2 July 8th 06 07:25 PM
Not all text wraps in a cell containing large amount of text Kris Excel Discussion (Misc queries) 3 December 23rd 05 04:25 PM
Text import out of line? Krefty Excel Discussion (Misc queries) 3 December 21st 04 05:08 PM
Chart Label wraps on the same line. "Wavelenght [nm]" appears as. rog Charts and Charting in Excel 1 December 15th 04 08:10 PM


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

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"