First post on this forum. Hello, all...
Here's the deal: I have to clear out my ComboBox list before running my macro, and it's messing up my results. If I do not clear out the ComboBox list, everything works fine, but then the list has repeated information in it. Here's the code, and the WB is attached:
Code:
Public Sub Finish_Click()
Application.ScreenUpdating = False
Sheets("Invoice").Range("B1:B2").Copy
Sheets("Database").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial _
Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Range("C8:F8").Copy
Sheets("Database").Range("A65536").End(xlUp).Offset(0, 2).PasteSpecial _
Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.ScreenUpdating = True
End Sub
Private Sub Worksheet_Activate()
Application.ScreenUpdating = False
Dim cbCVals
Dim i As Integer
cbCVals = Array("Axle", "Wheel")
cbComponents.Clear
cbComponents2.Clear
For i = 0 To 1
cbComponents.AddItem cbCVals(i)
cbComponents2.AddItem cbCVals(i)
Next i
cbComponents.ListIndex = 0
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
How do I modify this to 1) keep unique entries in the ComboBox list and 2) prevent the list from clearing out entirely? I think the code modification will be simple, but I'm simply not getting it.
Thanks for any assistance, folks!
Bubbis Thedog