Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi all,
I have limited experience with VBA, so I decided to seek some help here. I need to import a text file into Excel, it does not contain commas, nor special characters. I have 3 different layouts given to me by the user, for example Format 1: Field 1. 3 chars Field 2. 20 chars Field 3. 13 chars So the 3 different layouts have different column widths. The text file is such that it loops from Format 1 (1 line) to Format 2 (20++ lines) to Format 3 (10+ lines) and then back to Format 1. The only way to identify which format each line belongs to, is to search for certain positions where certain text are present within the line. for example, format 1 contains non-empty char in position 3 to 10, format 2 contains NULL char in positions 14 to 30, format 3 contains 9s from postion 25 to 29... I've recorded the macro to do the importing, but cannot seem to find the code to tweak the varying column widths. any help is greatly appreciated!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF/AND/OR/DATEIF Issue...sorry...long post... | Excel Worksheet Functions | |||
creating a bar graph | Excel Discussion (Misc queries) | |||
I wish to have multiple column widths for a the same column. | Excel Worksheet Functions | |||
Changing column widths w/o affecting all rows | New Users to Excel | |||
Two column widths for the same column | Excel Worksheet Functions |