Hello,
I have this code that works
Code:
TUnits=Application.Workheetfunction.Subtotal(9,Range(MCRStartDateRng,MCRToDateRng.Offset(lastCell -1,0))
But when I have blanks in that range the code errors
I thought adding to the above code "IFERROR", would resolve when but it doesn't work
Code:
TUnits= Application.Worksheetfunction.IFERROR(Subtota(9,(MCRStartDateRng,MCRToDateRng.Offset(LastCell -1,0))),0)
How can I resolve this error or issue?
Thank you!
I have this code that works
Code:
TUnits=Application.Workheetfunction.Subtotal(9,Range(MCRStartDateRng,MCRToDateRng.Offset(lastCell -1,0))
But when I have blanks in that range the code errors
I thought adding to the above code "IFERROR", would resolve when but it doesn't work
Code:
TUnits= Application.Worksheetfunction.IFERROR(Subtota(9,(MCRStartDateRng,MCRToDateRng.Offset(LastCell -1,0))),0)
How can I resolve this error or issue?
Thank you!