Thanks to all who help with this simple matter!
This is a fairly straight-forward question: When I need to reference ranges that are constantly changing, how do I construct the range in VBA?
For example: I create a table starting with cell A7. I have a few calculated values in columns B, C, and D (7). I have a macro that when I click a button, it increments cell A7's value by 1 and pastes the value in cell A8. I do this using a + 1 counter variable I call "RowNum". Say I would like a border to appear around the values at the bottom of this range (columns A, B, C, and D). To reference it, I thought I could call it .Range("A7:"A" & RowNum), but this is quite incorrect. What would be the proper way in VBA to reference this sort of range?
Bookmarks