I'm using the following code to try and define an offset range of cells, but VBA is not accepting the syntax. VBA accepts the WriteCell definition but not the Opers definition. I get a "Expected list separator or (" message at the . following "A2". Enclosing the "A2" and/or "A50000" in parentheses doesn't help. Thanks for any help,
Paul Hudgens
Denver
Code:
With Workbooks(ThisWkBk).Worksheets("Operators")
Set WriteCell = .Range("A2").Offset(0, iOffset)
Set Opers = .Range("A2".Offset(0, iOffset + 1), .Range("A50000".Offset(0, iOffset + 1).End(xlUp).Offset(1, 0)))
End With
Paul Hudgens
Denver