Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Below is part of a macro which splits a fixed width file into the required
columns, ColSplit being the variable for the split positions. When this is imported into Excel how can I make all the fields be Text formatted as it is formatting the columns as General at the moment and leading zeros are being dropped. Many thanks Selection.TextToColumns Destination:=Range("A1"), DataType:=xlFixedWidth, _ FieldInfo:=Array(Array(0, 1), Array(ColSplit(1), 1), Array(ColSplit(2), 1), Array(ColSplit(3), 1), Array(ColSplit(4), 1), _ Array(ColSplit(5), 1), Array(ColSplit(6), 1), Array(ColSplit(7), 1), Array(ColSplit(8), 1), Array(ColSplit(9), 1), Array(ColSplit(10), 1), _ Array(ColSplit(11), 1), Array(ColSplit(12), 1)) |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
TextToColumn when destination to other sheet | Excel Discussion (Misc queries) | |||
Split up | New Users to Excel | |||
How do I remove split a split window? | New Users to Excel | |||
Un-Split | Excel Discussion (Misc queries) | |||
Split a Value | Excel Discussion (Misc queries) |