NewbiDoobie
Technical User
I have a loop that goes through and copies information from a spreasheet into another.
All of the cells are being copied cept for one which keeps displaying as a #Value.
It is the same field each time. I can diplay it in a message box with no problems. I thought if I changed from a .Value to .Text that this would fix it as it has special characters and such.
When I did I get an error: 1004 Unable to set the text property of the range class.
Here is the code I am using:
All of the cells are being copied cept for one which keeps displaying as a #Value.
It is the same field each time. I can diplay it in a message box with no problems. I thought if I changed from a .Value to .Text that this would fix it as it has special characters and such.
When I did I get an error: 1004 Unable to set the text property of the range class.
Here is the code I am using:
Code:
Worksheets("Repair Track Info").Range("B3").Value = Worksheets("RTDATA").Cells(i, 5)
Worksheets("Repair Track Info").Range("B7").Value = Worksheets("RTDATA").Cells(i, 6)
Worksheets("Repair Track Info").Range("B9").Value = Worksheets("RTDATA").Cells(i, 3)
MsgBox Worksheets("RTDATA").Cells(i, 4)
Worksheets("Repair Track Info").Range("B12") = Worksheets("RTDATA").Cells(i, 4)