Private Sub UserForm_Activate()    Dim SourceWB As Workbook     Dim rng As Range, Item As Range     Dim i As Integer     Application.ScreenUpdating = False     With Me.axlenumbox         .Clear    ' remove existing entries from the combobox         ' open the source workbook as ReadOnly         Set SourceWB = Workbooks.Open("J:\WHEELSET FLOW SYSTEM\LIVE SYSTEM\database_np_201403190805.xlsx", _                                       False, True)         'set the data range         With SourceWB.Worksheets("database")         Set rng = .Range(.Range("f5"), .Range("f" & .Rows.Count).End(xlUp))     End With                  ' get the values you want                                  For Each Item In rng             If Item.Offset(0, 9).Value <> "fail" Then                 .AddItem Item.Value    ' populate the listbox             End If             Next Item              .ListIndex = -1    ' no items selected, set to 0 to select the first item         End With         SourceWB.Close False    ' close the source workbook without saving changes         Set SourceWB = Nothing         Application.ScreenUpdating = True     End Sub