whoops -
I need to make another adjustment
Dim NumOfRows
Dim NumOfColumns
NumOfRows = Application.CountA([Sheet1!$A:$A])
NumOfColumns = Application.CountA([Sheet1!$2:$2])
0r
Dim NumOfRows
Dim NumOfColumns
With Worksheets("Sheet1")
NumOfRows = Application.CountA(.range("A:A"))
NumOfColumns = Application.CountA(.Range("2:2"))
--
Regards,
Tom Ogilvy
"Fredriksson via OfficeKB.com" wrote:
> Thanks I appreciate the help
> Tom Ogilvy wrote:
> >Dim NumOfRows
> >Dim NumOfColumns
> >NumOfRows = Application.CountA(Sheet1!$A:$A)
> >NumOfColumns = Application.CountA(Sheet1!$2:$2)
> >
> >> I am trying to count the number of rows in a column that are non blank
> >>
> >[quoted text clipped - 5 lines]
> >> the debugger keep erroring out at this line. Is there anouther function I
> >> can use
>
> --
> Message posted via OfficeKB.com
> http://www.officekb.com/Uwe/Forums.a...mming/200704/1
>
>