I am trying to add a variable to a routine but VB won't let me add it and returns an 'Out of Memory' error and removes the variable.
Not entirely sure why it's doing this as I don't have a massive number of public or local variables declared and the module isn't especially large.
I am setting a lot of range variables to manipulate data and move around various sheets without having to activate the relevant sheets and I'm wondering of this is causing a problem. I have, as far as I can see, set all range variables to 'Nothing' when finished with, but when set to 'Nothing' some will be re-used again as part of a loop routine.
Thanks
Not entirely sure why it's doing this as I don't have a massive number of public or local variables declared and the module isn't especially large.
I am setting a lot of range variables to manipulate data and move around various sheets without having to activate the relevant sheets and I'm wondering of this is causing a problem. I have, as far as I can see, set all range variables to 'Nothing' when finished with, but when set to 'Nothing' some will be re-used again as part of a loop routine.
Thanks