+ Reply to Thread
Results 1 to 5 of 5

Scrollbar question

  1. #1
    Registered User
    Join Date
    12-19-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    22

    Question Scrollbar question

    Is there a way to make a cell an input to a scroll bar? Say I had a calculation that came up with a percentage from 0-100 but that changed due to other inputs. I am new to learning VBA and am not sure if this is possible. I have looked around for the past couple days to no avail. I would like the scrollbar location to be adjustable to the input from the cell that changes due to the other inputs. Appreciate the help in advance!
    Last edited by pgreenway; 04-01-2011 at 01:40 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Scrollbar question

    If you link a scrollbar to a cell that cell can only contain a value, not a formula.
    So the cell itself can not use the value from the result of a formula.

    You can however populate the cell via code when the other cells change.
    For this you will need to use code in the worksheet_Change event
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-19-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Scrollbar question

    Thanks Andy, at least it sounds doable. I am not familiar with VBA much. Just started learning it this week. Using macro recorder to help teach myself certain things. I did find a response that you gave to someone else using the Worksheet_Change Event. Could you give me a breakdown in how I should approach this?

    http://excel.bigresource.com/Track/excel-zLpTNaWX/

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Scrollbar question

    something like this.

    note that altering the scroller will also update C3 but that will have no effect on the other 2 cells.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-19-2010
    Location
    Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: Scrollbar question

    Andy, thank you so much. This is exactly what I needed.

+ 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