+ Reply to Thread
Results 1 to 7 of 7

Select Multiple Tables With Listbox

  1. #1
    Registered User
    Join Date
    09-17-2009
    Location
    Russia, St. Petersburgh
    MS-Off Ver
    Excel 2003/2007
    Posts
    62

    Select Multiple Tables With Listbox

    Hi
    Is it possible to select multiple tables with listbox. If not, please privide me another way to do that.
    please see attached and u'll understant what I need to fo.

    Happy New Year
    Attached Files Attached Files
    Last edited by bambino_32; 12-28-2009 at 09:50 AM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Select Multiple Tables With Listbox

    The simples way is to do this at initialization
    Please Login or Register  to view this content.
    Kill the RowSource in the properties of the LB1.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    09-17-2009
    Location
    Russia, St. Petersburgh
    MS-Off Ver
    Excel 2003/2007
    Posts
    62

    Re: Select Multiple Tables With Listbox

    Hi
    Thank u for quick responce
    I couldn't use 'em
    Geing error mesags/
    And when I press OK button nothing happens

    See screenshot please

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Select Multiple Tables With Listbox

    Hi Ricardo. trying this out to learn ... I get

    Run time error '1004':
    Method 'range' of object '_Global' failed.

    whatever that means. (I did delete the RowSource property for ListBox1)

    I'm not sure what your code is supposed to be doing, could you explain?

    As far as I interpret the OP's question, they want to tick the boxes in the list box, then hit OK and as a result have the tables in the sheet selected.

    Is that how you read this, too?

    cheers

  5. #5
    Registered User
    Join Date
    09-17-2009
    Location
    Russia, St. Petersburgh
    MS-Off Ver
    Excel 2003/2007
    Posts
    62

    Re: Select Multiple Tables With Listbox

    rwgrietveld

    For example when table1 and table2 in listbox are selected, I need for the ranges B6:J19 and B23:J36 to be selected

  6. #6
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Select Multiple Tables With Listbox

    The following code is straight forward. Although I do not feel this is my best solution, I'll post it nevertheless.

    Assumptions:
    All ranges are of the same size.
    Als ranges have an equal offset (17 rows in between)
    Table1 refers to =Sheet1!$B$6:$J$19

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by rwgrietveld; 12-28-2009 at 08:14 AM.

  7. #7
    Registered User
    Join Date
    09-17-2009
    Location
    Russia, St. Petersburgh
    MS-Off Ver
    Excel 2003/2007
    Posts
    62

    Re: Select Multiple Tables With Listbox

    Thank u very much!!!!!!!!!!!!!!!!!!!!!!
    And happy new year!!!!!!!!!!!!!!!!!!!

+ 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