+ Reply to Thread
Results 1 to 8 of 8

Single Cell Rotating List?

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    16

    Single Cell Rotating List?

    Hello All,

    I was wondering if someone could help me develop a rotating list macro or something that will allow data from one column from a seperate sheet to display one at a time on another sheet, with a "Next" button to view the next item. For example's sake imagine this:

    In sheet 1 I want Cell A1 to display data from Sheet two in a list.

    Let's say Sheet 2 column A has the following list:
    Mouse
    Cat
    Dog
    Cow
    Horse
    Bird
    Bug

    I would want A1 to display only Mouse until I hit a "Next" button, then it would display "Cat," then Next would display "Dog," etc... Once at the end of the list (i.e. Bug) I would want the Next button to go back up to the top and display Mouse again.

    Is this possible? Any help would be greatly appreciated!
    Last edited by brolsen; 09-13-2011 at 10:46 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Single Cell Rotating List?

    Try this in the Command button code
    rename your command button to "cmdNext"
    Dont forget to mark the post as [SOLVED] if it was

    Please Login or Register  to view this content.
    I have attached the file for you
    Attached Files Attached Files

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Single Cell Rotating List?

    Try this:-
    Please Login or Register  to view this content.
    Mick

  4. #4
    Registered User
    Join Date
    08-10-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Single Cell Rotating List?

    Thanks for the help, anytime I try to run the code I get an error that says:
    Compile Error: Invalid Outside Procedue

    Any clue what I am doing wrong?

    I opened your excel, hit design view, added your code to the button, then I am apparently stuck there. When I click on the button in design mode, the Name Box does say "cmdNext"

  5. #5
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Single Cell Rotating List?

    Place a Button from the "Forms" toolbar (Not ActiveX") on sheet1 (Results sheet
    You will know if its a forms Button because the word "Button1" will will show on its Caption.
    When you place the Button on the sheet ,the Macro dialog box will appear. Click "New from the Menu on side of box .
    The VB editer will appear.
    Paste the code into the Vb window
    Please Login or Register  to view this content.
    Each time you click the Button a new value from list in sheet(2) column "A" will appear.
    Regards Mick

  6. #6
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Single Cell Rotating List?

    the sheet i sent already contains the button. just press it.

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

    Re: Single Cell Rotating List?

    No buttons, but doubleclicking in cel A1:

    Please Login or Register  to view this content.
    Attached Files Attached Files



  8. #8
    Registered User
    Join Date
    08-10-2011
    Location
    Phoenix, AZ
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Single Cell Rotating List?

    MickG's second post helped a lot and it worked.

    Kelshaer, I tried yours and when I opened it nothing happened.

    Thanks for everyone and your help! You all are the best!

+ 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