Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have the following code but upon clicking the cancel button it is resulting
in Run-time error '424' Object required. Any suggestions? Set SRC = Application.InputBox(PROMPT:="Select The First Cell of The Source Data." & vbNewLine & vbNewLine, Type:=8) If vbCancel Then Exit Sub End If |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Error Resume Next
Set SRC = Application.InputBox(PROMPT:="Select The First Cell of The Source Data." & vbNewLine & vbNewLine, Type:=8) If Err.Number < 0 Then Exit Sub On Error GoTo 0 HTH Daniel I have the following code but upon clicking the cancel button it is resulting in Run-time error '424' Object required. Any suggestions? Set SRC = Application.InputBox(PROMPT:="Select The First Cell of The Source Data." & vbNewLine & vbNewLine, Type:=8) If vbCancel Then Exit Sub End If |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dim Src as range
set src = nothing on error resume next set src = application.inputbox(....) on error goto 0 if src is nothing then 'user hit cancel exit sub '???? end if .... FARAZ QURESHI wrote: I have the following code but upon clicking the cancel button it is resulting in Run-time error '424' Object required. Any suggestions? Set SRC = Application.InputBox(PROMPT:="Select The First Cell of The Source Data." & vbNewLine & vbNewLine, Type:=8) If vbCancel Then Exit Sub End If -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Exit a Procedure from a Sub within a sub | Excel Discussion (Misc queries) | |||
Exit Sub | Excel Discussion (Misc queries) | |||
Excel 07 won't exit | Setting up and Configuration of Excel | |||
Run when exit | Excel Worksheet Functions | |||
on exit macro | Excel Discussion (Misc queries) |