I have tried a variety of ways to do this paste, but none of them are working. I am extremely new to programming, so I need some help with understanding why I keep getting either error 1004 or 5. I don't even understand what these errors mean.
Cells(hotcell).Copy
Cells.Offset(0, 1).PasteSpecial
or ...Paste, ...PasteSpecial = xlpasteall, ...pastespecial Paste:= xlpasteall, Range(Cells("B" & i)).paste, Range("B" & i).paste, and so on as above.
I'm at a total loss. Everything else in the program is working just fine. I just can't get it to paste my copied values into the desired cells (all offset by a certain number of columns, but in the same row). Help and explanation both appreciated.
Edit Thanks to BOTH of the answers I recieved, I was able to solve my problem. I really couldn't find a good answer anywhere I looked. Thank you!
The solution I used was one of the simplest:
rng.Offset(0, 1) = rng.Text
Thanks again to the posters who answered, and the ones who commented. I was making it far too difficult.
Cells(R1, C1).Value = Cells(R2, C2).Valuewould do the job better and faster. Would that work for you?Cellsyou refer to the entireRangeof a sheet and there is no way you can useOffsetin it because there is nowhere to offset to. So you will get error1004. To know ways on how to copy and paste, refer to BK201's post. It should get you started.hotcellin your code.Cellsi think accept numeric argument. If the value ofhotcelis not a numeric value, you'll geterror 5. see my post for the complete explanation