+ Reply to Thread
Results 1 to 7 of 7

listbox counts 6 when theres 7

  1. #1
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    listbox counts 6 when theres 7

    hi
    anyone any ideas please my listbox1 only displays 6 entries although counts 7 instances found , does this for any amount it always comes up 1 short
    tried entering a2 in code and allsorts ,just lost me
    cheers colin
    hi click search /add
    enter 2 in 1st box
    click search
    cheers colin
    Attached Files Attached Files
    Last edited by cfinch100; 12-29-2012 at 04:05 PM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: listbox counts 6 when theres 7

    could you send the listbox ?

  3. #3
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: listbox counts 6 when theres 7

    ita attached to first thread
    cheers colin

  4. #4
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: listbox counts 6 when theres 7

    ita attached to first thread
    cheers colin

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: listbox counts 6 when theres 7

    Colin

    When I try it says there are 6 but only displays 5 in the listbox, but when I look at the worksheet the filter list has 6 rows.
    If posting code please use code tags, see here.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: listbox counts 6 when theres 7

    I made some very small changes in cmdSearch_Click, I've commented them in the code.
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: listbox counts 6 when theres 7

    hi norie
    not sure what happened then i replied and sent but went missing ,never mind as usual sheer genius many thanks for that got one question if i enter an ainscough ref no it some how gets transferred into purchase or colloumn as well through the userform any thoughts many thanks yet again
    cheers colin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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