+ Reply to Thread
Results 1 to 8 of 8

Make a spinner control SELECTED cell

  1. #1
    Registered User
    Join Date
    03-29-2007
    Posts
    4

    Make a spinner control SELECTED cell

    I have a worksheet with many numbers that need to be changed often. Instead of making a separate spinner for each cell is it possible to make just one and have it +1 or -1 from the cell I have selected?

    I was thinking there's probably something I can input in the "cell link" box to do this.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by downward spiral
    I have a worksheet with many numbers that need to be changed often. Instead of making a separate spinner for each cell is it possible to make just one and have it +1 or -1 from the cell I have selected?

    I was thinking there's probably something I can input in the "cell link" box to do this.

    Thanks
    Hi,

    if you used the Spinner from the Control Toolbox, set the Linked cell, then Rightmouse and View Code and put
    Please Login or Register  to view this content.
    where 'H8' is your linked cell


    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    03-29-2007
    Posts
    4
    I see what you're saying, but instead of setting my value change to cell H8, can i change H8 to something general like "highlighted cell" ?

    I want one up button and one down button to be able to add or subtract from whichever cell i highlight in the worksheet



    EDIT:

    Here's what my worksheet looks like. I have 6 columns.

    Number of Units | Unit Name | Unit Price | Units Sold | Units Not Sold | Units Currently in Auction |
    ______20_________thing_______$10_______10___________25________________5_____________
    Last edited by downward spiral; 03-29-2007 at 09:00 AM.

  4. #4
    Registered User
    Join Date
    03-29-2007
    Posts
    4
    so nobody knows if this is even possible?

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by downward spiral
    I see what you're saying, but instead of setting my value change to cell H8, can i change H8 to something general like "highlighted cell" ?

    I want one up button and one down button to be able to add or subtract from whichever cell i highlight in the worksheet



    EDIT:

    Here's what my worksheet looks like. I have 6 columns.

    Number of Units | Unit Name | Unit Price | Units Sold | Units Not Sold | Units Currently in Auction |
    ______20_________thing_______$10_______10___________25________________5_____________
    what DO you mean by 'highlighted' cell?

    do you mean the currently selected cell?

    did you test the code?

    As you can 'highlight' more than 1 cell only the defined 'Active cell' will increment.

    also, what your worksheet looks like is not correctly represented here, if you need to show then please attach a zip'd sample sheet, then the helpers do not need to type up your data.

    did my code work? - if not in which way did it not work?
    ---

  6. #6
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by downward spiral
    so nobody knows if this is even possible?
    I guess the answer to this would be for you to link the spin button to 'ActiveCell' - - and if you find a way to do that please let us know.

    ---

  7. #7
    Registered User
    Join Date
    03-29-2007
    Posts
    4
    got it!

    HTML Code: 

  8. #8
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by downward spiral
    got it!

    HTML Code: 
    good to see, and thanks for the feedback.

    ---

+ 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