With this code whenever a selection is made in a dropdown in C2:C50 the user will be prompted for a quantity.
The quantity they enter will go in column F on the same row as the dropdown the made the selection in.
Private Sub Workbook_SheetChange(ByVal sh As Object, ByVal target As Range)
Dim strresult As Integer
If Not Intersect(target, Range("C2:C50")) Is Nothing Then
Application.EnableEvents = False
strresult = InputBox("Please enter a quantity", "Enter Quantity")
target.Offset(, 3).Value = strresult
End If
Application.EnableEvents = True
End Sub
Or, that's what should happen, hopefully.
Bookmarks