Try this....
Dim NextRow As Long
NextRow = Range("A65536").End(xlUp).Row + 1
Cells(NextRow, 1) = "Whatever"
Ken
Or another way......
Range("yourrangeaddress").Copy Destination:=Sheets("User Survey_new").Range("A65536").End(xlUp).Offset(1, 0)
Ivan
Sub Macro1()
Columns("A:A").Select
Selection.SpecialCell (xlCellTypeBlanks).Select
ActiveCell.Select
End Sub
Columns("A:A").SpecialCells(xlCellTypeBlanks)(1, 1).Select
Cheers guys but I get a message saying 'object doesn't support this property or method' error for the selection.specialcell line.... I'm using Excel 97?
Perhaps you should post the exact code that is producing the error. Can't think why it's not working unless Excel 97 doesn't support the SpecialCells method (can't remember).
You could use this instead if you like :-
If Cells(1, 1) = "" Then
Cells(1, 1).Select
ElseIf Cells(2, 1) = "" Then
Cells(2, 1).Select
Else
Cells(1, 1).End(xlDown)(2, 1).Select
End If Cheers guys but I get a message saying 'object doesn't support this property or method' error for the selection.specialcell line.... I'm using Excel 97?
Excel97 does support SpecialCells. It's the
VBA equivalent of the Edit | Go To... | Special...
menu command! I used the Macro Recorder to
create the original statement. Perhaps you should post the exact code that is producing the error. Can't think why it's not working unless Excel 97 doesn't support the SpecialCells method (can't remember). You could use this instead if you like :- If Cells(1, 1) = "" Then