+ Reply to Thread
Results 1 to 3 of 3

Bring table with all columns into List Box.

  1. #1
    Registered User
    Join Date
    06-27-2018
    Location
    Azerbaijan
    MS-Off Ver
    2013
    Posts
    29

    Bring table with all columns into List Box.

    Hello Dear Members,

    My question is about ListBox.

    I have a table in which shown information about workers and this table is dynamic.

    Actually this table is my database relate to workers' information.

    Sometimes I need to make some changes on date, so I need to bring that data into list box.

    Here is my code:

    I got debug with last part.

    Please Login or Register  to view this content.
    Thanks in advance!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Bring table with all columns into List Box.

    There are multiple issues with your code...
    1. While you use "With... End With" you didn't use "." in front of Cells. So it's using ActiveSheet regardless of Worksheet specified.
    2. ".RowSource" does not belong in "With... End With" it should be qualified with ListBox.
    3. From "EditData.Show" I assume the listbox is in the userform. You should have code to load listbox with data in UserForm initialize event.

    Here's sample code using Excel Table to fill listbox.

    Please Login or Register  to view this content.
    See attached sample as well.
    Attached Files Attached Files
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    06-27-2018
    Location
    Azerbaijan
    MS-Off Ver
    2013
    Posts
    29

    Re: Bring table with all columns into List Box.

    CK76 I am grateful to you for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 05-19-2016, 04:51 PM
  2. How to use a Click/List box to bring up values
    By bcrouch in forum Excel General
    Replies: 7
    Last Post: 11-20-2015, 12:27 PM
  3. [SOLVED] Bring multiply values from a table
    By douglascaixeta in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-27-2013, 08:59 PM
  4. Refrence Box list won't bring up a name with the same text
    By AdamHaubert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-11-2013, 03:10 AM
  5. Replies: 0
    Last Post: 05-21-2012, 04:32 PM
  6. Selection list to bring up cells
    By Toddneyx in forum Excel General
    Replies: 8
    Last Post: 06-09-2008, 07:08 AM
  7. bring up list
    By DarnTootn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-19-2006, 10:45 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1