Make sheet change stick after Application.Inputbox
I'm not sure what you mean by sticking, but maybe...
Option Explicit
Sub testme()
Dim myRng As Range
Set myRng = Nothing
On Error Resume Next
Set myRng = Application.InputBox(Prompt:="pick a range", Type:=8)
On Error GoTo 0
If myRng Is Nothing Then
'do nothing
Else
Application.Goto myRng ', scroll:=true
End If
End Sub
Or maybe...
Application.Goto myRng.Parent.range("A1") ', scroll:=true
RB Smissaert wrote:
Is there a simple way to make a sheet change stick that was done while in
the Application.InputBox dialog (with Type:=8)?
I can do it by parsing out the sheet name from the resulting range and then
activate that sheet, but I have a feeling that there might be a simpler way
to do this.
RBS
--
Dave Peterson
|