Cannot get repeat values from Combo Box

wilster98

New Member
Joined
May 11, 2016
Messages
25
I am working on a user-form that provides a list of vendor addresses to be entered in the active cell. Once the "Enter Address" the choice in the combo box remains visible, but the value will not enter a second time. There are times when the report this userform uses will need 12 duplicate addresses. It would be ideal for the operator to just click the "Enter Address" button 12 times, but when I click the button the second time its as if there is no value in the combo box I've included a snippet of the code as well as pictures of the userform and snippet from the report.

Thanks in Advance
Willy


VBA Code:
Private Sub cmdEnter_Click()
Dim strValue As String
    Dim n As Integer
    strValue = cboList.Value
    ActiveCell.Offset(1, 0).Select
End Sub
 

Attachments

  • UserForm.PNG
    UserForm.PNG
    6.6 KB · Views: 4
  • Form2.PNG
    Form2.PNG
    25.8 KB · Views: 4

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,214,530
Messages
6,120,071
Members
448,943
Latest member
sharmarick

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