View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Paul Wilson[_2_] Paul Wilson[_2_] is offline
external usenet poster
 
Posts: 7
Default Last cell in column

Hi,

I just wanted to find out the number of rows based on the last cell which
has data.

I have been trying to use the following

Dim LastCell As Double
LastCell = Cells(Rows.Count, 5).End(xlUp)

But get a VBA error.
--
Paul Wilson