View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ed Nelson Ed Nelson is offline
external usenet poster
 
Posts: 1
Default How many rows on a Worksheet

I am trying to find out how many rows there on a Worksheet
using VBA code. I am doing data extraction on XLS files I
received from another company, and so I never know how
many rows there can be on a work sheet.

I have tried:
Application.SendKeys "^{END}", True
iRows = ActiveCell.Rows

But his always returns 1.

Any ideas?

Thanks!

Ed