I want to replace specific row references in the Rows Method with variables and can not figure out the format. The format as shown in help is:
Rows("10:11"
.Select
This code selects the 10th and 11th rows specifically. I tried using variables instead of the row references as follows:
Dim intRow as Integer
Dim intRow1 as Integer
Rows(intRow
intRow + 1)).Select
Also tried:
Rows(intRow:intRow1).Select
Both brought up an error indicating that the Colon was wrong. Can anyone help?
Thanks, Numbers
Rows("10:11"
This code selects the 10th and 11th rows specifically. I tried using variables instead of the row references as follows:
Dim intRow as Integer
Dim intRow1 as Integer
Rows(intRow
Also tried:
Rows(intRow:intRow1).Select
Both brought up an error indicating that the Colon was wrong. Can anyone help?
Thanks, Numbers