Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
have the following line of code
Dim reg As String Range(locatereg).Select reg = InputBox("Confirm Registration Number For " & Range(locatetrunk) & Chr$(13) & Chr$(13), "Reg", Range(locatereg)) how do i get the imput box to exit the sub if cancel is pressed,, as it does if using msgbox |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dim reg As String
Range(locatereg).Select reg = InputBox("Confirm Registration Number For " & _ Range(locatetrunk) & vbNewLine & vbNewLine, _ "Reg", Range(locatereg)) If reg < "" Then ... -- HTH Bob Phillips (remove nothere from the email address if mailing direct) "ME @ Home" wrote in message ... have the following line of code Dim reg As String Range(locatereg).Select reg = InputBox("Confirm Registration Number For " & Range(locatetrunk) & Chr$(13) & Chr$(13), "Reg", Range(locatereg)) how do i get the imput box to exit the sub if cancel is pressed,, as it does if using msgbox |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Password redundant through use of cancel | Excel Discussion (Misc queries) | |||
input box | Excel Discussion (Misc queries) | |||
Input cell reference is not valid (One Variable Data Table) | Excel Worksheet Functions | |||
Input Form vba help | Excel Discussion (Misc queries) | |||
can you input time (hh:mm:ss) without having to input the colon i. | Excel Discussion (Misc queries) |