I've been banging my head against this problem for a while now and its really frustrating me. I'm hoping someone out there may be able to help...
I am trying to find a way of storing the value of a variable, which keeps changing its value within a loop. The idea behind this is to have a statement within a loop that says a set variable "VariableA" equal to the value of the active cell. As the loop runs the active cell changes and in turn the value of VariableA changes too. I want to store all these values so that when the loop is complete, I can concatenate the list of active cell values.
All of this is straight forward to code, apart from finding a way to store the changing variable. My original idea was to have a variable that changed name with each loop:
Variable & Count.value = Activecell
This is not working though as I am not being allowed to concatenate a variable name.
Is there a way around this or will I have to find another way of recording and concatenating the values of a group of cells.
Any thoughts are very welcome!
I am trying to find a way of storing the value of a variable, which keeps changing its value within a loop. The idea behind this is to have a statement within a loop that says a set variable "VariableA" equal to the value of the active cell. As the loop runs the active cell changes and in turn the value of VariableA changes too. I want to store all these values so that when the loop is complete, I can concatenate the list of active cell values.
All of this is straight forward to code, apart from finding a way to store the changing variable. My original idea was to have a variable that changed name with each loop:
Variable & Count.value = Activecell
This is not working though as I am not being allowed to concatenate a variable name.
Is there a way around this or will I have to find another way of recording and concatenating the values of a group of cells.
Any thoughts are very welcome!