View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
GTVT06 GTVT06 is offline
external usenet poster
 
Posts: 141
Default Check to see if cell is blank

Sorry, I assigned a value to i twice, you can remove one:

Sub Macro1()
Dim i As Integer

If Range("A9") = "" Then
* * Range("A9").PasteSpecial xlPasteAll
* * * * Else
* * * * i = Range("A65536").End(xlUp).Row + 1
* * * * Cells(i, 1).PasteSpecial xlPasteAll
End If

End Sub