listbox / userform

  1. A

    Userform Listbox

    I've created a userform with a listbox populated with each month. If somebody doesn't click a month before clicking "Okay", I want a message box telling them to choose a month before the program continues to run. I know how to create a message box, but what kind of if statement could I use to...
  2. R

    Exporting 2 Column Listbox to Separate Worksheet

    <tbody style="margin: 0px; padding: 0px; border: 0px;"> favorite I'm trying to export a 2 column list box to a new worksheet. I want to display each column in the new worksheet. This needs repeating twice as there are 3 listboxes. The user will select the desired row in the listbox and then...
  3. W

    Excel VBA, Userform, Listbox, Multi Select, Retrieve results

    Good Afternoon - Very new to VBA. I have managed to create an advanced userform with multiple values, text boxes, combo boxes, multi select list boxes. I can copy this data into excel. I can also retrieve the data for the Text Boxes, and Combo boxes back into the User form search for a...
  4. J

    Display only specified columns in listbox

    Hi Guys (and Girls) Some help please - my head seems a bit flat today I have a worksheet "Projects" (filtered on Column 6 - "F") I want to populate my listbox (Listbox1) with only the visible data shown on the worksheet Columns I want to display is 1,2,3,4,7,10,11,12 (A,B,C,D,G,J,K,L) Column...
  5. J

    Listbox showing unwanted blanks after AddItem in Do While Loop

    Dear reader, I'm populating a Userform Listbox through a module that looks like this: Dim FindString As String Dim LastRowStk As Integer Dim Rng As Range Dim Foundtwo As String Dim FLRow As Integer FindString = "Something" LastRowStk = Worksheets(1).Range("A" & Rows.Count).End(xlUp).Row...
  6. C

    Userform Listbox Help: Without using Command Buttons

    Hi, So I recently made a userform listbox that references a list of countries I have. I have the following code pasted in Sheet1 so that when I click one of the cells referenced, the userform pops up. Private Sub Worksheet_SelectionChange(ByVal Target As Range)If Not...
  7. B

    Optimize Search Function

    Hi Everyone, I have been reading all this threads to put together my Userform, Now I have it and it works but it could be better, what my code does is search through orders based on a selection made in a combobox and text entered into a text box. Now it works, however it has glitched in it...
  8. M

    Change Listbox Item (multicolumn value)

    I have a multicolumn listbox. I would like the user to be able to change the selected value with an input box. This is the code which I have written so far - with an example value Dim intListitem As Integer intListitem = lstOrders.ListIndex Me.lstOrders.List(intListitem) = "12.12.2012" When...
  9. S

    How to update only one Item in a list box?

    Hello everyone, I have a list box in which you can select multiple items. When you click modify, it will analyze which items are selected and go through all of them. That means it will first display the first Item with the Item ID and other information from the same line. Then I have the...
  10. Z

    Set listbox to show specific part of an equipment

    Hello, I'm trying to solve a problem with my userform. I have a list of equipment and a list of specific parts of this equipment in the same Excel Book. I want the "select part" listbox to show specific parts as i can modify the tag entry in the first textbox. Here the Equipment List, the...
  11. W

    Subroutine erroneously removes remaining column data when removing duplicate rows

    I'm re-engineering a subroutine to remove the duplicate rows from a listbox; the "ColumnCount" property of the listbox is set to "13". If I don't call my duplicate removal subroutine, the listbox correctly contains all of the columns of data; however, several rows are dupliated. The subroutine...
  12. F

    Search Box in ListBox

    I have posted this in Ozgrid so I'm cross posting the link here as well Search Box in ListBox Please help and advise Thank you, Fadil
  13. H

    Excel VBA - Assign object variable to userform Listbox

    I have a userform which contains a ListBox called lbPivotFields_Selected. How do I assign this to an object variable of the ListBox type (as opposed to just a generic Object)? I tried this Dim lb As ListBox Set lb = lbPivotFields_Selected But I get a Type Mismatch error message. Can anyone...
  14. W

    Userforms to select worksheets

    I have the following worksheets: 6-8mm 8-10mm 15-20mm 25-35mm 40-50mm I have a list box in my userform containing these numbers. I need to activate the sheet once it is selected. I have this. but it doesn't work. Private Sub Submitbutton_Click() If ListBox1.Value = "6 - 8mm" Then...
  15. M

    Userform Listbox not displaying last item value in the first column

    I am trying to display items in a ListBox for a user to reference. The ListBox is given data using ListBox.List = Some_Array 'a 2 dimensional array I generate from a database. The following code shows what I am trying to do. The first sub I use to update this list given information from the...
  16. D

    Userforms and changing list boxes excel 2010

    I am trying to fill in missing data in a spreadsheet. What I am trying to create is a macro that would populate a userform with listboxes for each blank cell in the row. See example below: <tbody> Name Zip Code Age Fav Food Homeowner Daniel 33706 Pizza Martha 27 Yes </tbody> With the...
  17. C

    How can i use Vlookup as a result in a concatenate string variable

    Hi All, I'm a newbie to VBA so maybe this is a simple question, but I can’t figure out how to concatenate 3 textboxes with a VLookup result value coming from an external worksheet with a named range called "Lookup". The Vlookup search value is entered in a Listbox ( SelectFw) which is used to...
  18. S

    Named Range - Frustrating Refernce is not valid error... Please help

    My excel sheet is has two colums Project name | Image Selected Projects position A Image1 B 2 B Image 2 C 3 C...
  19. korhan

    UserForm listbox won't initialize

    Hello Mr.Excel Community, I have a really simple question which I couldn't figure out by myself. My listbox won't initialize no matter what I have tried. I have tried to initialize the listbox when I open the form, I have also tried a click event and none of them worked. Here is my test code...
  20. L

    Retrieve ListBox Items from a different workbook

    Hello all, I am currently trying to find a way to reference data from a listbox in a userform (UserForm1) from a different worksheet. The flow of the process I am trying to accomplish should look something like this: Book1 has a UserForm with two ListBoxes. ListBox1 is populated with data from...

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