+ Reply to Thread
Results 1 to 10 of 10

List Box in Userform/ Sheet Array

  1. #1
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    List Box in Userform/ Sheet Array

    Hi,

    Is it possible to populate listbox 1 on userform2 from sheets 12 (inclusive) onwards with the value of A3 on each sheet ?
    Last edited by zimbo109; 05-21-2010 at 04:43 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: List Box in Userform/ Sheet Array

    problems will arise if the sheet order is changed,something like
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: List Box in Userform/ Sheet Array

    Thanks Roy, .Index is an invalid or unqualified reference??

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: List Box in Userform/ Sheet Array

    Sorry,rushing about at the moment
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: List Box in Userform/ Sheet Array

    Great as always- Thanks Roy.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: List Box in Userform/ Sheet Array

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: List Box in Userform/ Sheet Array

    or (faster)
    Please Login or Register  to view this content.
    Still you can choose the Value property - .cells(3,1) - or - .cells(3.1).Value or the Text property - .cells(3,1).Text - of cell A3.
    Last edited by snb; 05-21-2010 at 03:11 PM.

  8. #8
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: List Box in Userform/ Sheet Array

    Thanks snb, the value that A3 returns is that also of the sheet name. From the listbox/combobox that is now showing the results of A3 in all ws after sheet 12 can I then select the item so that, that sheet becomes the active sheet?

  9. #9
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: List Box in Userform/ Sheet Array

    in that case you can also use:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Exeter, England
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    180

    Re: List Box in Userform/ Sheet Array

    Thank you works perfectly.

+ 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