+ Reply to Thread
Results 1 to 7 of 7

Listview Control version 6.0

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Mississauga
    MS-Off Ver
    Excel 2013
    Posts
    5

    Listview Control version 6.0

    I'm trying to add a listview to a userform, but when I drag the box onto the userform I get a "library not registered" error. How can I correct this. I'm using Office Excel 365, and the ListView control is version 6.0.

    please help...

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Listview Control version 6.0

    Hello PerryBeatty,

    I would guess that your version of Office 2013 is 64 bit. The ListView 6.0 control is a 32 bit library. As far as I know, Microsoft has not created nor intends to create a 64 bit version of this control.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    Mississauga
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Listview Control version 6.0

    Hi Leith,

    I am running the 32bit version of Microsoft Office 365. I've attached a couple of spreadsheets with a Listview, one was downloaded from the web and it works. I copied the VBA code fro that spreadsheet into one I created on my computer and it won't load the data into the listview. I'm stumped...

    Perry
    Attached Files Attached Files

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Listview Control version 6.0

    That references common controls 5. I don't have that on my system. You'll probably notice that you have a missing reference, I resolved by removing the missing reference and replacing the constants and strongly typed listview members with numbers and "objects" respectively. Or you could just reference the same version as the working example

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Listview Control version 6.0

    I'm not sure how this works but the working version is using Microsoft Windows Common Controls 6 (Sp 6). The non-working version is using MWCC 5.

    With only the non-working version open, there is a reference to MWCC 5 but obviously it doesn't work. It doesn't, however, say the reference is missing. BUT, I can't see MWCC 6 in the list of references.

    When I open the working version, I can see MWCC 6 (near the top, not with the other Microsoft Windows stuff) and select it (and deselect MWCC 5).

    Then it works.

    Save it, close it, re-open it ... fine.

    A puzzle


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: Listview Control version 6.0

    Is this fixed?

  7. #7
    Registered User
    Join Date
    03-18-2014
    Location
    Mississauga
    MS-Off Ver
    Excel 2013
    Posts
    5

    Re: Listview Control version 6.0

    Not yet...

+ 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. Populating ListView control
    By jberr in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-13-2015, 07:52 AM
  2. [SOLVED] Printing ListView Control Items into WorkSheet
    By contaminated in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 09:35 AM
  3. ListView Control / Drag&Drop / msghook
    By gooopil in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2011, 01:08 PM
  4. Drag and Drop from ListView control to a cell
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2011, 07:16 PM
  5. Populate Excel Listview Control
    By Evagrius in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-02-2009, 03:36 AM

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