D
Dolemite
I have been digging through this forum for the last day or so in hopes
of finding a solution so as not to repeat a question, but have been
unsuccessful.
I am trying to define a range via variables with (row,column) format
instead of explicitly naming the range.
i.e.- set myrange =
worksheets("sheet1").range(row1,column1:row2,column2)
where row1, row2, column1, column2 are variables
instead of set myrange = worksheets("sheet1").range("a1:b2")
I can't seem to get the syntax correct, and I cannot figure out what I
am missing.
I can name it explicitly without a problem, but my range changes
constantly and I don't want to have to change the code everytime. Any
help would be greatly appreciated.
Thanks in advance.
Drew
of finding a solution so as not to repeat a question, but have been
unsuccessful.
I am trying to define a range via variables with (row,column) format
instead of explicitly naming the range.
i.e.- set myrange =
worksheets("sheet1").range(row1,column1:row2,column2)
where row1, row2, column1, column2 are variables
instead of set myrange = worksheets("sheet1").range("a1:b2")
I can't seem to get the syntax correct, and I cannot figure out what I
am missing.
I can name it explicitly without a problem, but my range changes
constantly and I don't want to have to change the code everytime. Any
help would be greatly appreciated.
Thanks in advance.
Drew