OK, Here's an easy one for Excel developers.
I need to consecutively select a number of different sized ranges in an excel spreadsheet in code. The catch is that I don't know how many cells will be in each range. All I know is the starting cell and the number of columns wide the range is.
What VBA code should I use to select the range? The only reference materials I have all contain examples using a known range (eg B1:F3), but not an unknown range. How do you do what is probably a very common task?
Second question - can anyone suggest some good VBA for Excel reference books/materials?
TIA
Lightning
I need to consecutively select a number of different sized ranges in an excel spreadsheet in code. The catch is that I don't know how many cells will be in each range. All I know is the starting cell and the number of columns wide the range is.
What VBA code should I use to select the range? The only reference materials I have all contain examples using a known range (eg B1:F3), but not an unknown range. How do you do what is probably a very common task?
Second question - can anyone suggest some good VBA for Excel reference books/materials?
TIA
Lightning