UserForm Combo Box Starts dropped down

mdd423

New Member
Joined
Jan 23, 2018
Messages
1
Hopefully this is an easy question but the answer is eluding me.

I'm using a userform for data entry and when the form initializes one of my combo box's is starting dropped down but not in the normal drop style.

IrATJfq.png


vs. this when you click into the combo box.

3RL65Zh.png




Code:
Private Sub userform_Initialize()
Dim cPress As Range
Dim ws As Worksheet
Dim Initials As String
Dim ds As Worksheet
Dim recordID As String
Dim ldate As Date


ldate = DateTime.Date - 1


'On Error Resume Next


Initials = InputBox("Enter your GUPI Initials:", "GUPI USER")


txtInitials.value = Initials


Set ws = Worksheets("LookupLists")
Set ds = Worksheets("Work Records")


recordID = WorksheetFunction.CountA(Range("A:A")) + 1


Me.txtRecID = recordID
Me.spnRecord.value = recordID
Me.ChkbxNotes.value = False
With Me.cboShift
    .AddItem "1st Shift"
    .AddItem "2nd Shift"
    .AddItem "3rd Shift"
    .value = ""
   End With




Me.p2gbar.Visible = False




For Each cPress In ws.Range("=Presses")
  With Me.CboPress
    .AddItem cPress.value
  End With
Next cPress
Me.TxtDate.value = ldate




End Sub



Thanks for you help!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,078
Latest member
skydd

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