Hi, <br>I'm trying to utilize the CountA() function of Excel thru my VB application. For some reason I can't get the syntax right. I need to ount the number of cells what have something in them.(data, strings, etc).<br>Here's what I have so far: <br>Public Sub UpdateExcel()<br> <br> Dim Range As String<br> Rang = "C1:C99"<br> AppExcel.ActiveCell.FormulaR1C1 = "=counta(rang)"<br> 'Here's where I'm having the trouble..any<br> 'TIPS??<br> row1 = AppExcel.ActiveCell.Value<br> row1 = row1 + 1<br> Rng = "a" & row1<br> AppExcel.Range(Rng).Select<br> AppExcel.ActiveCell.FormulaR1C1 = Date<br> AppExcel.Selection.NumberFormat = "d-mmm-yy"<br> Rng1 = "b" & row1<br> AppExcel.Range(Rng1).Select<br> AppExcel.ActiveCell.FormulaR1C1 = Time<br> AppExcel.Selection.NumberFormat = "h:mm"<br>End Sub