+ Reply to Thread
Results 1 to 6 of 6

Listbox with more the 24 collumns

  1. #1
    Registered User
    Join Date
    06-22-2018
    Location
    suisse
    MS-Off Ver
    office 2016
    Posts
    59

    Listbox with more the 24 collumns

    Hello,
    I need to fill a listbox with more than 24 (A-Z) collumns, with precisely 26 collumns (A-AB) and when displaying the listbox the last two collumns i cant see then in the listbox.
    here's the code

    Please Login or Register  to view this content.
    Can anyone help me?

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

    Re: Listbox with more the 24 collumns

    Your are specifying the column widths for 27 columns, not 26.

    By the way, if only a few of the columns are going to be visible then why not put the data from those columns into an array and use that to populate the listbox?
    If posting code please use code tags, see here.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Listbox with more the 24 collumns

    To give you a hint.
    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Registered User
    Join Date
    06-22-2018
    Location
    suisse
    MS-Off Ver
    office 2016
    Posts
    59
    Quote Originally Posted by bakerman2 View Post
    To give you a hint.
    Please Login or Register  to view this content.
    Where should I be putting this code??

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Listbox with more the 24 collumns

    My best guess without seeing your data.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    06-22-2018
    Location
    suisse
    MS-Off Ver
    office 2016
    Posts
    59

    Re: Listbox with more the 24 collumns

    Sorry i've checked my code and i was doing it wrong
    This should be the right code
    Please Login or Register  to view this content.
    Thank you very much for your help anyway

+ 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. Fill Listbox with multiple collumns based on textbox value
    By dark_prince69 in forum Excel Programming / VBA / Macros
    Replies: 43
    Last Post: 09-02-2018, 03:00 PM
  2. Excel 2007 : Unlocking Collumns
    By stuart3 in forum Excel General
    Replies: 5
    Last Post: 11-05-2011, 03:53 AM
  3. Loop to run through collumns
    By Glytch in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-18-2008, 10:16 AM
  4. Collumns to text
    By trafficbroker in forum Excel General
    Replies: 4
    Last Post: 09-07-2006, 10:10 AM
  5. [SOLVED] Sub Total collumns
    By Darren via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2006, 07:00 PM
  6. [SOLVED] Totalling Collumns
    By Stormingerman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-18-2005, 09:50 PM
  7. [SOLVED] Collumns and rows
    By smintey in forum Excel General
    Replies: 3
    Last Post: 02-15-2005, 02:06 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