Sheet name
Try this...
MyConstant = Application.CountA(ActiveSheet.Range("A2:I31"))
--
Rick (MVP - Excel)
"oldjay" wrote in message
...
I want to change this from the Master sheet to the active sheet
MyConstant = Application.CountA(Sheets("Master").Range("A2:I31" ))
|