How to push user to fill cell after using drop down list.

Ksiendzu

New Member
Joined
Mar 24, 2017
Messages
2
I'm doing order form. I would like to be sure that always after use of drop down list of products, quantity od them will be enter by user.
a1..a30 drop down list of products in every cell ( that part I know how to do)
b1..b30 quantity to be put by user (1-100)

User is choosing product form drop down list, and next possible action should be insert of quantity of that product.

How to force user to put that quantity I have no idea.
Thanks for help.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Ksiendzu,

Welcome to the Board.

If you're comfortable with a vba approach, you might consider the following...

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim qty As String
On Error GoTo errHandler
Application.EnableEvents = False
If Not Intersect(Target, Range("A1:A30")) Is Nothing And Target.Value <> "" Then
    Do
        qty = InputBox(prompt:="Please enter a quantity." & vbCrLf & "1 to 100", Title:="Required Field")
        Cells(Target.Row, 2) = qty
    Loop While qty = vbNullString
End If
errHandler:
Application.EnableEvents = True
End Sub

The code should be pasted into the appropriate worksheet module.

When a user enters/chooses a product, an input box will display that requires the user to input a quantity.

Cheers,

tonyyy
 
Upvote 0
Thank you very much. Works fine. I was playing with Basic on my Atari long time ago. Didn't even notice that it is still alive. Thank you very much for your help.
 
Upvote 0
You're welcome. Glad it worked out...
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,294
Members
449,149
Latest member
mwdbActuary

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top