Is there an easier way to write this:
dim lastcell as range
Set lastcell = ActiveCell.Offset(-1, 7) 'happens at somepoint in the program
Range("b4:" & lastcell.Address(RowAbsolute:=False, ColumnAbsolute:=False)).Select
how about this:
Range(ActiveCell.Address(RowAbsolute:=False, ColumnAbsolute:=False) & ":" & ActiveCell.Offset(0, 5).Address(RowAbsolute:=False, ColumnAbsolute:=False)).Select
dim lastcell as range
Set lastcell = ActiveCell.Offset(-1, 7) 'happens at somepoint in the program
Range("b4:" & lastcell.Address(RowAbsolute:=False, ColumnAbsolute:=False)).Select
how about this:
Range(ActiveCell.Address(RowAbsolute:=False, ColumnAbsolute:=False) & ":" & ActiveCell.Offset(0, 5).Address(RowAbsolute:=False, ColumnAbsolute:=False)).Select