I've got an existing Macro I'd like to use by passing an rng argument, but if no rng is passed, the macro asks for a rng via inputbox, but I can't get the argument to work correctly.
Here is what I have:
Sub Four_Hundred_Fourty_Four_Split_Sub(Optional urng)
' Tried (Optional urng As Range), but it didn't work, couldn't run sub without arg
If IsEmpty(urng) = False Then 'urng = Missing
Debug.Print urng
Set urng = Application.InputBox("Select a range", "Obtain Range Object", Type:=8)
End If
How can I get an optional rng argument to work in this method?