goldenvision
Board Regular
- Joined
- Jan 13, 2004
- Messages
- 234
Surely this shouldn't be so complicated? I am missing something obvious here. I just don't know what it is.
I am trying to copy a value from cell A1 in sheet From and paste it into the next available empty cell in column B of sheet To
help
I am trying to copy a value from cell A1 in sheet From and paste it into the next available empty cell in column B of sheet To
Code:
Private Sub CommandButton1_Click()
Dim rownumber As Integer
Sheets("From").Select
Range("A1").Select
Selection.Copy
Sheets("To").Select
rownumber = 1
Do Until Cells(rownumber, 2) = ""
MsgBox rownumber
Range("B" & rownumber).Select
Selection.Paste
rownumber = rownumber + 1
Loop
End Sub
help