+ Reply to Thread
Results 1 to 3 of 3

List Box Help

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    2

    List Box Help

    Hi all, I am new to VB but have some programming experience.

    The Task:

    I have two data sets I need to compare and cross reference. I have them on two sheets in the workbook. I am linking each of the sheets to a listbox...fairly straight forward and all working so far.

    New I want to reference one sheet on the other the create a third listbox that contains a combination of both, in a certain format to be used in another process. The formatting is quite important for the next task.

    Here is my code:

    Please Login or Register  to view this content.
    For some reason when it created the new listbox contents (and it does do that bit correctly) it also adds thousands of rows to the bottom of the new listbox. This is now causing some issues to the next stage of my work.

    Any ideas?

    Apologies if I am missing something really easy....Thanks
    Last edited by zbor; 09-04-2013 at 08:00 AM. Reason: It's enough to edit. No need for new post

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: List Box Help

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    09-04-2013
    Location
    London, England
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: List Box Help

    Hi all, I am new to VB but have some programming experience.

    The Task:

    I have two data sets I need to compare and cross reference. I have them on two sheets in the workbook. I am linking each of the sheets to a listbox...fairly straight forward and all working so far.

    New I want to reference one sheet on the other the create a third listbox that contains a combination of both, in a certain format to be used in another process. The formatting is quite important for the next task.

    Here is my code:

    Please Login or Register  to view this content.
    For some reason when it created the new listbox contents (and it does do that bit correctly) it also adds thousands of rows to the bottom of the new listbox. This is now causing some issues to the next stage of my work.

    Any ideas?

    Apologies if I am missing something really easy....Thanks

+ 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: 2
    Last Post: 02-22-2015, 11:40 AM
  2. Replies: 0
    Last Post: 01-09-2013, 11:44 AM
  3. [SOLVED] Taking a list of tasks and a list of subtasks and creating a new list with groupings
    By kknb0800 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2012, 12:16 PM
  4. Replies: 3
    Last Post: 07-20-2012, 09:52 AM
  5. list 1 has 400 names List 2 has 4000. find manes from list 1 on 2
    By Max in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 09:05 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