SaintAugustine
Technical User
I'm trying to write a macro that will run down the column to the right of a table and change the value of those empty cells to "value to left of active cell *divided by* table total" in order to let me see the percentages.
My loop seems to work fine. The problem I'm having is with getting VBA to perform a mathematical function using the variable I've defined as an integer.
In other words, my macro always croaks at:
ActiveCell.FormulaR1C1 = "=RC[-1]" / myTableTotal
Any help appreciated - thanks!
My loop seems to work fine. The problem I'm having is with getting VBA to perform a mathematical function using the variable I've defined as an integer.
In other words, my macro always croaks at:
ActiveCell.FormulaR1C1 = "=RC[-1]" / myTableTotal
Any help appreciated - thanks!