+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Scroll Bar Formula

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    Oregon
    MS-Off Ver
    Excel 2007
    Posts
    1

    Scroll Bar Formula

    Hi Excel Community- I am trying to make a scroll bar that starts at 0 and counts by 1 in both directions up to 100 I am also wondering if the is a way to reset the value at zero after a selection. I included a pic hope that helps and makes sense- thanks-Yadadamean

    3 2 1 0 1 2 3
    | | | | | | | | | | | | | | | | | | | | | | | | | |
    ^

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Scroll Bar Formula

    Well you won't get the numerical display with a scroll bar, but you can set a cell link to indicate the current value of the scroll bar.

    Create a scroll bar from the Forms Controls.
    In the Format Control dialog:
    Maximum value = 200
    Minimum value = 0
    Incremental = 1

    Set cell link, say A1 of the sheet.
    In B1: =A1-100

    Hide cell A1 if desired, and reference cell B1 as needed for positive/negative values.

    The only way to set the value to zero after a selection is:

    1. Manually set cell A1 to a value of 100 (because this value is centered between 0-200.
    2. Use VBA to set the cell value.

    However, I would not reset the scrollbar after making a selection but would use a reset button. If you reset it after a change then it will never indicate a selected value.

    Code for the command button:

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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