Results 1 to 9 of 9

Fill Listbox with 2 sheet columns.

Threaded View

  1. #1
    Registered User
    Join Date
    08-27-2009
    Location
    Milton Keynes
    MS-Off Ver
    Excel 2007
    Posts
    45

    Fill Listbox with 2 sheet columns.

    Hi there,

    I'm trying to populate a Listbox "listbox3" with two columns on a worksheet. These columns aren't set next to one another, therefore I cannot just assign a rowsource of "A:B" etc.. it would instead need to be "D" and "F".

    I have started a piece of code (below) however not sure if I'm going about it the right way. Any advice would be greatly appreciated.

     Dim rngFirstNme As Range
    Dim rngLastNme As Range
    
    rngFirstNme = Sheets("pgs_CustomerList_Unique").Range("D2:D502").Value
    
    rngLastNme = Sheets("pgs_CustomerList_Unique").Range("F2:F502").Value
    
    
    Listbox3. ? = ?
    Last edited by RayJay01; 12-27-2013 at 04:51 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to fill 3 columns in one sheet with data from 3 cells in another sheet
    By programct in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-30-2013, 02:44 PM
  2. Replies: 12
    Last Post: 08-28-2012, 07:09 AM
  3. Replies: 4
    Last Post: 04-05-2012, 11:30 AM
  4. Copy data from Listbox columns to Sheet
    By WCJanssen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2011, 09:50 AM
  5. ListBox Fill 3 Columns With Worksheet Range's
    By radar_jynx in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-10-2009, 09:25 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