Hello!
I got a formula in my cell assigned via VBA:
It finds the highest number of day among all values in the column.
I want it to be my variable without having this value in a cell.
I looked into Worksheetfunction options, but it seems that DAY formula isn't available there. Is there a workaround for such cases or I'm forced to use a cell for it (and then empty it)?
I got a formula in my cell assigned via VBA:
Code:
ActiveCell.FormulaR1C1 = "=DAY(MAX(values!C8))"
I want it to be my variable without having this value in a cell.
I looked into Worksheetfunction options, but it seems that DAY formula isn't available there. Is there a workaround for such cases or I'm forced to use a cell for it (and then empty it)?
Last edited: