I have a macro that requires user to select range, and then it carries on:
Dim rng As Range
On Error Resume Next
Set rng = Application.InputBox("Select a cell", "Make it happen!", Type:=8)
And when range is selected, everything works great. But when user just presses Enter without selecting any range, I get error:
I tried to check rng.value, rng.count, but without any luck.
I just want a simple Exit Sub if nothing is selected.
