So in excel vba I'm trying to select a range, but a different range every time. I have a loop going, but I was wondering how I would actually write the code to change the range. This is what it would look like for a single range.
Range("B7").Select
Is there a way to do this with integers instead of strings such as "B7"
i.e
Range(i).Select
I need it to select a single column. Any advice would be appreciated.
Thanks
Well, if you only have to selct one Cell:
But because you have to select more:
Including that you want a loop:
I hope that's helpful :)
If you know where the cell is relative to the starting row you could use offset to do something like this:
Look up offset to learn how to modify this to suit your needs