I want to make a macro that opens a workbook ("StandardParts") and then opens an excel userform(SearchUF) that has a textbox (userinput) then opens a worksheet ("StandardParts") and searches a worksheet ("List") Row C a for a match. Hi I am trying to write a code to get the values from row a and create a combo box list. I need it to search the column and then populate the combobox (combobox1) without duplicates. so the drop down list for this example would be "name1" "name2"' "name3". Any help is appreciated I am stuck thanks
Dim ws as worksheet
Dim List as varient
Sub Test()
Dim LastRow As Long
lastrow = Cells(Rows.count,1).Endxl(up).row
ws = activesheet
For i = 1 to Lastrow
if lastrow(i) <> cells(i,1) then
set List(i)
next i
End Sub
Dim ws as worksheet
Dim List as varient
Sub Test()
Dim LastRow As Long
lastrow = Cells(Rows.count,1).Endxl(up).row
ws = activesheet
For i = 1 to Lastrow
if lastrow(i) <> cells(i,1) then
set List(i)
next i
End Sub