How do I avoid this
Code: Select all
Set myHistogramTable = _
Application.InputBox("Select a cell in the histogram table", _
"Histogram Location", Type:=8)
If Not myHistogramTable Is Nothing Then
Code: Select all
Set myHistogramTable = _
Application.InputBox("Select a cell in the histogram table", _
"Histogram Location", Type:=8)
If Not myHistogramTable Is Nothing Then
Code: Select all
On Error Resume Next
Set myHistogramTable = _
Application.InputBox("Select a cell in the histogram table", _
"Histogram Location", Type:=8)
On Error Goto 0 ' or an error handler label
If Not myHistogramTable Is Nothing Then