+ Reply to Thread
Results 1 to 4 of 4

Populate listbox if search reference is duplicated

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    Populate listbox if search reference is duplicated

    Hi

    my userform searches based on the date. If it finds something it populates an amount into another textbox. So it is searching the date in column(A) then returning the corresponding value in column(B). If the date is duplicated it is meant to populate a listbox with all the dates and corresponding values which are duplicated.

    I think it has something to do with the fact im searching based on the date, as I have another userform which searches based on a number and it does as it should.

    So heres the code for the whole userform, the find features are in Sub cmbFind and SUb FindALL.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Populate listbox if search reference is duplicated

    Please Login or Register  to view this content.
    Also, check out this article (scroll to the bottom) about using Range Find to search for dates.
    David
    (*) Reputation points appreciated.

  3. #3
    Registered User
    Join Date
    08-11-2014
    Location
    london
    MS-Off Ver
    2007
    Posts
    33

    Re: Populate listbox if search reference is duplicated

    That article suggests using datevalue as the formatting method, if i used datevalue() instead of cdbl() would that run smoother?

    But tried changing to what you said but still that didn't fix it

  4. #4
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,125

    Re: Populate listbox if search reference is duplicated

    Quote Originally Posted by rayexcel View Post
    ... tried changing to what you said but still that didn't fix it
    Then we'll need a sample workbook.

+ 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. [SOLVED] Item in ListBox (search) to populate UserForm with values
    By onmyway in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-12-2013, 04:47 AM
  2. [SOLVED] Populate a Listbox in a UserForm based on a Search Result
    By clapforthewolfman in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 07-17-2013, 07:53 PM
  3. Populate a Userform from a selection on a popup search listbox
    By ahmadassaad in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-16-2012, 09:00 AM
  4. Userform populate listbox with search from multiple textboxes
    By chendysworld in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2012, 11:12 AM
  5. Replies: 1
    Last Post: 04-02-2012, 11:07 PM

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