Johnnyboy1x
New Member
- Joined
- Jan 11, 2013
- Messages
- 32
Hello All --
I have a macro button in my spreadsheet that initiates various input boxes and places input in specific cells
I am running Excel 2016, WIN 7 64-bit
I know the line in my code below starting with DROPDOWNBOX is not right, but that is the best way I can express what I am trying to do.
Hopefully someone can help!
Thank you in advance, Johnny
I have a macro button in my spreadsheet that initiates various input boxes and places input in specific cells
I am running Excel 2016, WIN 7 64-bit
I know the line in my code below starting with DROPDOWNBOX is not right, but that is the best way I can express what I am trying to do.
Hopefully someone can help!
Thank you in advance, Johnny
Code:
Private Sub CommandButton1_Click()
Dim myValue As Variant
myValue = InputBox("Enter Serial Number (ex. 142110/16)")
Range("H13").Value = myValue
myValue = InputBox("Enter Your Name (ex. Bill Smith)")
Range("H15").Value = myValue
myValue = InputBox("Job Code ex. PD,PM,FS,FLEX,WTY, INST")
DROPDOWNBOX Job Code = Array("PD", "PM", "FS", "WTY", "FLX", "INST", "Non Billable")
Range("H14").Value = myValue
End Sub