Good morning!
I would like to modify this formula in a macro so that it always looks at a specific column reference (column K)
ActiveCell = "=SUM('Review Tab'!K:K)"
I've changed it to this:
ActiveCell = "=SUM(INDIRECT(" 'Review Tab'!K:K"))"
However, VBA now thinks that everything after the first single inverted comma is a comment!
So everything from the letter R is now a comment!
And I get a "Run-time error: 1004" saying "Application defined or object defined error."
Does anyone how I can make it ignore the single inverted commas here? They are there because I need to reference another tab.
Thanks in advance.
I would like to modify this formula in a macro so that it always looks at a specific column reference (column K)
ActiveCell = "=SUM('Review Tab'!K:K)"
I've changed it to this:
ActiveCell = "=SUM(INDIRECT(" 'Review Tab'!K:K"))"
However, VBA now thinks that everything after the first single inverted comma is a comment!
So everything from the letter R is now a comment!
And I get a "Run-time error: 1004" saying "Application defined or object defined error."
Does anyone how I can make it ignore the single inverted commas here? They are there because I need to reference another tab.
Thanks in advance.