Results 1 to 3 of 3

Listbox Rowsource based on columns

Threaded View

Code Flunkie Listbox Rowsource based on... 09-02-2014, 02:50 PM
mehmetcik Re: Listbox Rowsource based... 09-02-2014, 03:35 PM
Code Flunkie Re: Listbox Rowsource based... 09-02-2014, 04:45 PM
  1. #1
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    114

    Listbox Rowsource based on columns

    Hi I'm trying to populate a single column listbox with the column headers of a dynamic range (a1 to last column) but i can't seem to convert that range to a list ie..

    a1
    b1
    c1
    d1
    etc...

    any ideas how to do that? i tried rowsource but it doesn't seem to do anything

    Private Sub PlanogramListBox1()
    
    Dim LastCol As Long
     
    LastCol = Sheet1.Range("CB1" & Columns.Count).End(xlToLeft).Column
    
    PlanogramListBox.RowSource = "'Master List'!CB1" & LastCol
    
     
    End Sub
    any help would be much appreciated

    Thanks,

    Chris
    Last edited by Code Flunkie; 09-02-2014 at 04:45 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. listbox.rowsource
    By nyfmpha in forum Excel General
    Replies: 3
    Last Post: 11-13-2013, 12:07 AM
  2. [SOLVED] ListBox RowSource
    By CobraLAD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2013, 02:08 AM
  3. Changing rowsource of 2 listboxes based on 3rd listbox.
    By scadaman29325 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2008, 11:20 AM
  4. Listbox - Rowsource
    By Paul W Smith in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-24-2006, 05:30 PM
  5. [SOLVED] RowSource in ListBox
    By Noah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2005, 10:10 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