I have 2 columns, A is the raw data and B is the additional character I need to merge it with into column C.
A- E.123456
B- .C
C- E.123456.C
Problem is when the macro gets to this point I get a Run time error 1004
Paste method of Worksheet class class failed
this is the code area that comes up for the debugging:
Workbooks.OpenText Filename:= _
"C:\Documents and Settings\jwg052057\Desktop\Book5.txt", Origin:=xlWindows, _
StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 9), Array(4, _
1), Array(12, 9))
Range("B2".Select
ActiveCell.FormulaR1C1 = ".C"
Range("C2".Select
ActiveSheet.Paste (This is the line that comes up in yellow)
Range("B2:C2".Select
Selection.AutoFill Destination:=Range("B2:C3528", Type:=xlFillDefault
Range("B2:C3528".Select
Columns("C:C".Select
Selection.Copy
This beast is almost done, with the exception of this. Any one have any ideas? Thanks!
julius.gazdag@centurytel.com
Im a Telco guy, I can get you where you want to go, but I can't guarantee it will work when you get there!
A- E.123456
B- .C
C- E.123456.C
Problem is when the macro gets to this point I get a Run time error 1004
Paste method of Worksheet class class failed
this is the code area that comes up for the debugging:
Workbooks.OpenText Filename:= _
"C:\Documents and Settings\jwg052057\Desktop\Book5.txt", Origin:=xlWindows, _
StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 9), Array(4, _
1), Array(12, 9))
Range("B2".Select
ActiveCell.FormulaR1C1 = ".C"
Range("C2".Select
ActiveSheet.Paste (This is the line that comes up in yellow)
Range("B2:C2".Select
Selection.AutoFill Destination:=Range("B2:C3528", Type:=xlFillDefault
Range("B2:C3528".Select
Columns("C:C".Select
Selection.Copy
This beast is almost done, with the exception of this. Any one have any ideas? Thanks!
julius.gazdag@centurytel.com
Im a Telco guy, I can get you where you want to go, but I can't guarantee it will work when you get there!