Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Column Widths, Importing ANSI txt files

I have a file that is about 140 columns wide, with virtually each column
being set to a specific width that differs from the columns next to it. The
file now exists as an ANSI txt file (with the entire table essentially being
in a single cell). I cannot delimit on any given character because my data
(within the columns has zeros, commas, slashes, spaces, etc.).

Is there a way to take this text file and either during import or after
import "tell" excel to set Column A to 8 characters (and to pull those
characters from the text file)? To set Column B to 30 characters and pull
data from the text file, column C to 1 character.. etc... for all 140 columns?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default Column Widths, Importing ANSI txt files

Hi

Try recording a macro of you importing this file and place the column
delimiters where you want them. You can then reuse this to import the
file 9possibly after amending the code eg so that you can open files
with different file names/locations as required). This does assume
that this format will be maintained from one file to tne next.

Richard

On 17 Jan, 09:27, ConfusedNHouston
wrote:
I have a file that is about 140 columns wide, with virtually each column
being set to a specific width that differs from the columns next to it. *The
file now exists as an ANSI txt file (with the entire table essentially being
in a single cell). *I cannot delimit on any given character because my data
(within the columns has zeros, commas, slashes, spaces, etc.). *

Is there a way to take this text file and either during import or after
import "tell" excel to set Column A to 8 characters (and to pull those
characters from the text file)? *To set Column B to 30 characters and pull
data from the text file, column C to 1 character.. etc... for all 140 columns?


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
Locking column widths & importing data in Excel 2003 Scotty Excel Discussion (Misc queries) 0 June 5th 07 05:12 AM
Column widths looking different in different files. Fran Excel Discussion (Misc queries) 0 April 20th 07 08:38 PM
importing csv files- entire record goes into each column Bill[_3_] Excel Discussion (Misc queries) 7 March 28th 07 12:57 AM
Column widths get changed when another user opens my files Patrick Excel Discussion (Misc queries) 0 October 27th 06 01:12 AM
Importing txt files one character per column/row. [email protected] Excel Discussion (Misc queries) 0 May 29th 06 12:50 PM


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