Hi,
Am Wed, 14 Nov 2012 17:46:34 +0000 schrieb kardifflad:
> ' Gather data
> Worksheets("Sheet1").Activate
> Range("A65536").Select
> ActiveCell.End(xlUp).Select
> LastRow = ActiveCell.Row
try:
With Worksheets("Sheet1")
lastrow = .Cells(.Rows.Count, 1).End(xlUp).Row
If lastrow = 3 Then
MsgBox "No data to copy"
End If
End With
Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2