Hi,
I have an input box that asks user to select a range of cells, then copies the cells and opens a new sheet.
I want to make sure if the user clicks on Cancel it exits the sub and if user clicks ok and the box is empty it prompts the user with a msgbox and else it continues with the macro.
any expert help is welcomed.
this is what i have;
-----------------------------------
Sub RangeSelectionPrompt()
Dim rng As Range
Set rng = Application.InputBox("Select Range, (Client Data): Column A - E only", "Obtain Range Object", Type:=8)
ActiveSheet.Range(rng.Address).Select
Call NewSheet
End Sub
-------------------------------
thanks,
I have an input box that asks user to select a range of cells, then copies the cells and opens a new sheet.
I want to make sure if the user clicks on Cancel it exits the sub and if user clicks ok and the box is empty it prompts the user with a msgbox and else it continues with the macro.
any expert help is welcomed.
this is what i have;
-----------------------------------
Sub RangeSelectionPrompt()
Dim rng As Range
Set rng = Application.InputBox("Select Range, (Client Data): Column A - E only", "Obtain Range Object", Type:=8)
ActiveSheet.Range(rng.Address).Select
Call NewSheet
End Sub
-------------------------------
thanks,