I want to define and select 2 separate ranges in the form
Range("A1: G1, A3:G3").Select
but I want to apply variables the Row Numbers in the form
Range("A(x): G(x), A(y):G(y)").Select
I have been unable to establish the correct syntax to achieve this.
The nearest I've got is:-
Range("C" & (x) & ":" & "G" & (x), "C" & (Y) & ":" & "G" & (Y)).Select
where x=1 and y=3 so that there are 2 separate ranges separated by a blank row.
However this produces a solid range block from C1 to G3.
Where is my syntax wrong?
Bookmarks