Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd probably go with something like...
Dim sNum$, sMsgs$ smsg = "Pick no more than " & vbCr _ & Space(10) & rngFnd.Offset(, 6) & " Stocks" & vbCr _ & "for Código I: " & myFnd & " Quantidade Retirada in Cell F10" sNum = InputBox(smsg, "Quantidade Retirada") If sNum = "" Then [F6,F8,F10,J10].ClearContents 'MsgBox "You canceled" Exit Sub End If -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thursday, October 23, 2014 1:05:18 AM UTC-7, GS wrote:
I'd probably go with something like... Dim sNum$, sMsgs$ smsg = "Pick no more than " & vbCr _ & Space(10) & rngFnd.Offset(, 6) & " Stocks" & vbCr _ & "for Código I: " & myFnd & " Quantidade Retirada in Cell F10" sNum = InputBox(smsg, "Quantidade Retirada") If sNum = "" Then [F6,F8,F10,J10].ClearContents 'MsgBox "You canceled" Exit Sub End If -- Garry I'll give it a go. Thanks Garry. Howard |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Oops.., there's a typo...
Sub test() Dim sNum$, sMsg$ sMsg = "Pick no more than " & vbCr _ & Space(10) & rngFnd.Offset(, 6) & " Stocks" & vbCr _ & "for Código I: " & myFnd & " Quantidade Retirada in Cell F10" sNum = InputBox(sMsg, "Quantidade Retirada") If sNum = "" Then MsgBox "Nothing entered" End Sub -- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Thursday, October 23, 2014 3:18:05 AM UTC-7, GS wrote:
Oops.., there's a typo... Sub test() Dim sNum$, sMsg$ sMsg = "Pick no more than " & vbCr _ & Space(10) & rngFnd.Offset(, 6) & " Stocks" & vbCr _ & "for Código I: " & myFnd & " Quantidade Retirada in Cell F10" sNum = InputBox(sMsg, "Quantidade Retirada") If sNum = "" Then MsgBox "Nothing entered" End Sub -- Garry Yes, I caught the typo, and it works well with "cleaner" coding. Thanks again. Howard |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You're welcome, ..as always!
-- Garry Free usenet access at http://www.eternal-september.org Classic VB Users Regroup! comp.lang.basic.visual.misc microsoft.public.vb.general.discussion |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Input Box Vs Cancel | Excel Programming | |||
Input Box - Hit cancel | Excel Programming | |||
Input box to cancel sub when Cancel is clicked. | Excel Programming | |||
Input box cancel | Excel Programming | |||
Input box cancel produces error | Excel Programming |