mrinal saha
Board Regular
- Joined
- Jan 20, 2009
- Messages
- 229
hi folks,
I am getting a stupid error, because of which entire project will go in vain.
just trying to convert some data from text to column. earlier i did it but now when i try to run with bunch of macro, it doesn't work. as soon as i select column(a:a)in code, i get error.
error received is :-
run time error 1004
application defined or object defined error
this is the piece of code..
Sheets("ACTD30BVR01").Activate
'text to column ACTD30BVR01
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("B1"), DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 2), Array(16, 1), Array(21, 2), Array(31, 1), Array(37, 1), _
Array(48, 1), Array(82, 2), Array(101, 1), Array(106, 1), Array(128, 1), Array(133, 1), _
Array(143, 1)), TrailingMinusNumbers:=True
Columns("A:A").Delete
thanks,
Mrinal
I am getting a stupid error, because of which entire project will go in vain.
just trying to convert some data from text to column. earlier i did it but now when i try to run with bunch of macro, it doesn't work. as soon as i select column(a:a)in code, i get error.
error received is :-
run time error 1004
application defined or object defined error
this is the piece of code..
Sheets("ACTD30BVR01").Activate
'text to column ACTD30BVR01
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("B1"), DataType:=xlFixedWidth, _
FieldInfo:=Array(Array(0, 2), Array(16, 1), Array(21, 2), Array(31, 1), Array(37, 1), _
Array(48, 1), Array(82, 2), Array(101, 1), Array(106, 1), Array(128, 1), Array(133, 1), _
Array(143, 1)), TrailingMinusNumbers:=True
Columns("A:A").Delete
thanks,
Mrinal