Hi.
Firstly i point out i am running this code from within Access 97.
I want to take the contents of a cell in every other row, and paste them into a cell one row above.
The following code selects every other row correctly, but at the selection.copy line errors out with an Error 4605, “This method or property is not available because no text is selected”.
For Each rng In sht.UsedRange.Rows
If rng.row Mod 2 0 Then
sht.Cells(rng.row, 5).Select
Selection.Copy
sht.Cells(rng.row – 1, 2).Paste
End If
Next rng
I know that the cell does contain text, so the error should read something like “Error. Your code is wrong.”
Something simple i am sure, but where is my error???
Many thanks.