rapitorres
New Member
- Joined
- Oct 5, 2017
- Messages
- 39
- Office Version
- 2010
- Platform
- Windows
Hi anyone can help me?
I've been having difficulty in making the input box value default by "1"
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then
If Target.Cells.CountLarge > 1 Or IsEmpty(Target) Then Exit Sub
Dim ans As String
ans = InputBox("Enter Quantity")
Target.Offset(, 4).Value = ans
I want to make the pop-up box value default by 1. and still can be edited by the user.
is that possible? or do I need to take another route for this? the line of code above is working fine.
I just want the value to default by 1.
I've been having difficulty in making the input box value default by "1"
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A:A")) Is Nothing Then
If Target.Cells.CountLarge > 1 Or IsEmpty(Target) Then Exit Sub
Dim ans As String
ans = InputBox("Enter Quantity")
Target.Offset(, 4).Value = ans
I want to make the pop-up box value default by 1. and still can be edited by the user.
is that possible? or do I need to take another route for this? the line of code above is working fine.
I just want the value to default by 1.