Godders199
Active Member
- Joined
- Mar 2, 2017
- Messages
- 313
- Office Version
- 2013
Hello, I have a puzzle that I cannot solve,
I have the following formula to count the number of nonblank cells in a column
="Check Type "&COUNTIF($AA$2:$AA$7500,"<>")
The spreadsheet is refreshed daily and I use thefollowing code to clear out the dataprior to the refresh.
If ActiveSheet.AutoFilterMode Then
ActiveSheet.AutoFilterMode = False
End If
Range("A2:Ay50000").Cells.Clear
However after the code has fully run and I check the aboutformula it has reduced the number of rows it is looking at.
="Check Type "&COUNTIF($AA$2:$AA$7497,"<>")
As I am using $$ I did not think the formula can change.
Am I being silly?
I have the following formula to count the number of nonblank cells in a column
="Check Type "&COUNTIF($AA$2:$AA$7500,"<>")
The spreadsheet is refreshed daily and I use thefollowing code to clear out the dataprior to the refresh.
If ActiveSheet.AutoFilterMode Then
ActiveSheet.AutoFilterMode = False
End If
Range("A2:Ay50000").Cells.Clear
However after the code has fully run and I check the aboutformula it has reduced the number of rows it is looking at.
="Check Type "&COUNTIF($AA$2:$AA$7497,"<>")
As I am using $$ I did not think the formula can change.
Am I being silly?