I know my code is hobbled together, but I cannot figure out the syntax to select a range with two variables.
I get a compile error on the Range(x&":"&y).Select
Sub Find_zero()
Dim x
Dim y
Range("F1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, -1).Select
x = ActiveCell.Address
Selection.End(xlDown).Select
ActiveCell.Offset(, 1).Select
y = ActiveCell.Address
Range(x&":"&y).Select
Selection.ClearContents
End Sub
I get a compile error on the Range(x&":"&y).Select
Sub Find_zero()
Dim x
Dim y
Range("F1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, -1).Select
x = ActiveCell.Address
Selection.End(xlDown).Select
ActiveCell.Offset(, 1).Select
y = ActiveCell.Address
Range(x&":"&y).Select
Selection.ClearContents
End Sub