Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi -
I was wondering if it's possible to write a macro for the following: After importing a .csv file to Excel, I use "Text to Column" to parse the data. The problem is each line/row has more than 256 columns worth of data. I'd like to have the rest of the data parsed into the next worksheet. In other words, if a row contains data that will spread across 356 columns, when I parse it, first 256 columns will be in sheet 1 and the rest 156 will be in sheet 2. Thanks! Pauline |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Pauline,
In other words, if a row contains data that will spread across 356 columns, when I parse it, first 256 columns will be in sheet 1 and the rest 156 will be in sheet 2. No build in function of excel will help you here. Read the file with a macro. Look in VBA-Help for "Input #", this will fill 356 variables for you, you write them then in sheet1 and sheet2 as you like. Maybe this works for you, I am not sure. Field delimiters could be a problem if it is not a comma ",". Otherwise use "Line Input" and parse through the text and search for the field delimiter on your own. arno |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Help displaying "Maximum" or "Minimum" if cell is max or min in a group? | Excel Discussion (Misc queries) | |||
how i convert "100" to "hundred"( number to text) in excel-2007 | Excel Worksheet Functions | |||
return maximum text "value" | Excel Worksheet Functions | |||
how to converts a number to text eg. "2" become "two" | New Users to Excel | |||
how to converts a number to text eg. "2" become "two" | New Users to Excel |