Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default inputbox help


i have an inputbox on one of my worksheets. on another worksheet i hav
a listof about 40 numbers. i want to be able to cancel the inputbox an
it exits on when i hit the cancel button. when i enter an incorrec
number i want to the box to have another box pop up that says incorrec
id.
my code so far is

Sub boxes()
'sub for user input boxes
Range("f8").Offset(Range("checkoutindex"), 0) = Range("checkoutindex")
Range("g8").Offset(Range("checkoutindex"), 0) = InputBox("Enter Produc
ID #")
Range("a2") = Range("g8").Offset(Range("checkoutindex"))
Range("i8").Offset(Range("checkoutindex"), 0) = InputBox("Ente
Quantity")
End Sub


Private Sub CommandButton1_Click()
'add item button
Range("checkoutindex") = Range("checkoutindex") + 1
boxes
Do While Range("a4") = True
MsgBox ("Incorrect ID #")
boxes
Loop
End Sub



thank yo

--
kcka
-----------------------------------------------------------------------
kckar's Profile: http://www.excelforum.com/member.php...fo&userid=2532
View this thread: http://www.excelforum.com/showthread.php?threadid=53443

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
InputBox Help Mark[_8_] Excel Discussion (Misc queries) 2 November 24th 08 11:07 PM
InputBox GeorgeJ Excel Discussion (Misc queries) 5 July 12th 07 01:20 AM
InputBox smandula Excel Programming 7 July 28th 05 08:33 AM
Inputbox and Application.InputBox Maria[_7_] Excel Programming 1 September 20th 04 11:36 AM
InputBox Hargrove Excel Programming 2 April 29th 04 07:43 PM


All times are GMT +1. The time now is 12:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"