Hi everyone,
I'm quite new with macros in excel so I'm relying on your expertise.
Let's say I have a table with headers and I'm using the count formula in a macro and this is the code:
Sub Test()
'
' Test Macro
'
'
ActiveCell.FormulaR1C1 = "=COUNT(Sheet1!C)"
End Sub
The header of the column would be "Apples".
How can I change the code to have the count performed in the column called "Apples"? And where exactly within the initial code should I put it?
I hope my question is clear.
Thank you for your help
I'm quite new with macros in excel so I'm relying on your expertise.
Let's say I have a table with headers and I'm using the count formula in a macro and this is the code:
Sub Test()
'
' Test Macro
'
'
ActiveCell.FormulaR1C1 = "=COUNT(Sheet1!C)"
End Sub
The header of the column would be "Apples".
How can I change the code to have the count performed in the column called "Apples"? And where exactly within the initial code should I put it?
I hope my question is clear.
Thank you for your help