listbox values

  1. J

    Remove Listbox Item based on value

    Hi I have this code: Private Sub removeModel() For i = 0 To ListBox1.ListCount - 1 If ListBox1.List(i) <> "Model" Then ListBox1.RemoveItem i End If Next End Sub it does the exact opposite of what I want. I would like everything to remain but the item named "model"...
  2. B

    Update range in worksheets based on selections in userform listbox

    I am using a listbox in a user form that is being populated with two values from each worksheet in a workbook, the value in range Y1 (Product Name) and the value in range A1. The box is populating great, but I want users to be able to edit the value in A1 through the userform. I am using...
  3. D

    Display unique values in Listbox

    I have a list on a worksheet: NameLast NameFirst Doe John Smith Betty Henry Bill Chen Paul Doe John Henry Bill I don't want to show the duplicate names in the list box. Is there a way to...
  4. J

    Listbox List All Found Items Only

    Hi, I would like a script which will put all found search items in a listbox. Basically I search for whatever value I type in textbox1 and I want listbox1 to return all the results. my search code is: Cells.Find(What:=TextBox1.Value, After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _...
  5. N

    Populate ListBox with Column Headers

    Hi, I have a row of data that I want to use in a ListBox. Lets say Row1 Column 1 to Column14 - "A1:N1" I have the Range three ways: A horizontal named range "Choices" A horizontal array of the Values of the range. A vertical array of the Values of the range. I am trying to populate a listbox...
  6. J

    Copy Listbox Values To Cells

    Can anyone please help with a listbox which copies the listbox values/ rows into column A on the SELETED worksheet .

Some videos you may like

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top