+ Reply to Thread
Results 1 to 6 of 6

Spin Button problem

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Spin Button problem

    I’d like to add a Spin Button to a financial worksheet and in my testing, I was able to increase a dollar value but only up to $30,000, beyond that the button’s limitations are out of bounds. I’m trying to use the tool to increase a dollar amount by $65,000 with each up or down click. Can I do this with some code?

    Attached is the portion of the workbook that needs the buttons. On the “What If” page, I want to increase the Net Operating Income field on the right by some amount (65,000 is fine), but not be limited to 30,000 maximum. If I can get this one working, I can make the others on the worksheet function similarly.

    I'd like the Spin Button fields to start with the amount in the same row on the left hand side of the worksheet. The new values will be used to calculate the "Maximum Allowable Offer" fields.

    Finally, if I could get a reset button to set the "Maximum..." fields back to the default value on the right.
    Attached Files Attached Files
    Last edited by JimDandy; 08-24-2011 at 01:53 PM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,998

    Re: Spin Button problem

    For the spin buttons, use an ActiveX one instead and then add this code:
    Please Login or Register  to view this content.
    For the reset, if I understand you correctly, you just want to assign the values from the left to the cells on the right?
    Everyone who confuses correlation and causation ends up dead.

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

    Re: Spin Button problem

    or use a spinbutton linked to a certain cell:
    Attached Files Attached Files



  4. #4
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Spin Button problem

    Quote Originally Posted by romperstomper View Post
    For the reset, if I understand you correctly, you just want to assign the values from the left to the cells on the right?

    Yes, that's correct..., this is to allow for additional calculations from the starting point.

    Thanks to you both, I will test both these examples today.

  5. #5
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Spin Button problem

    The code from romperstomper worked perfectly, thanks!

  6. #6
    Registered User
    Join Date
    10-21-2014
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    1

    Re: Spin Button problem

    I have another question on Spin buttons or Scroll Bars...

    Is there a way to code the starting value of the Spin/Scroll button = to a Cell. So that if that cell changes values the starting value for the button also changes. Right now in the properties for the buttons the start Value is a form, and doesn't allow a cell reference...

+ 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