I want to know how many times something appears in a column in the visible cells after filtering.
for example book appears 12 times in a column, 3 are visible and 9 are hidden. I need the VBA code to return 3.
Below is what I have but it includes both hidden and visible instances
dim book as string
book = Application.WorksheetFunction.CountIfs(Sheets("All_Orders").Range("G1:G30000"), book)
other columns probably will have been filtered too. I have looked around the net but cannot get the examples to work. I'm using Excel 2010 and 2013
thank you in advance
smiler44
for example book appears 12 times in a column, 3 are visible and 9 are hidden. I need the VBA code to return 3.
Below is what I have but it includes both hidden and visible instances
dim book as string
book = Application.WorksheetFunction.CountIfs(Sheets("All_Orders").Range("G1:G30000"), book)
other columns probably will have been filtered too. I have looked around the net but cannot get the examples to work. I'm using Excel 2010 and 2013
thank you in advance
smiler44