LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default texttocolumns

A spreadsheet sent by email contains empty strings in
blank cells (I think) that stop text in cells to the left of
them from flowing across the blank cells to the right.

I have found that using texttocolumns eliminates whatever
data exists in the apparently blank cells allowing the
text to flow better.

For each column in the usedrange, I want to run the
texttocolumn operation using a fixed width such that
each column of the spreadsheet parses to only one
column of text. I have tried the following which works
most of the time but not all of the time. What could
I be doing wrong?

With ActiveSheet
For Each col In .UsedRange.Columns
col.TextToColumns DataType:=xlFixedWidth, fieldinfo:=Array(Array(0, 1), Array(80, 9))
Next col

Thanks


 
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
What does TrailingMinusNumbers do in the TextToColumns Method Lennard van Putten Charts and Charting in Excel 3 August 5th 05 11:59 PM
TextToColumns Randy Reese Excel Programming 2 February 24th 04 07:44 PM
TextToColumns Dialog Howie[_3_] Excel Programming 1 October 28th 03 09:22 PM


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