+ Reply to Thread
Results 1 to 2 of 2

Modifying Spin Button

  1. #1
    Registered User
    Join Date
    01-18-2016
    Location
    England
    MS-Off Ver
    MS Office 2007
    Posts
    3

    Modifying Spin Button

    Hi Guys,

    Im Throne, I just learned the Min Function few days ago for an availability control and monitoring. So I figure why not use the spin button to minimize keyboard usage, make it cooler just like those brand application developer, and cause I like to click things. The spin button will function to add the nominal figure from D4 to D7, while it works wonderfully, I got the problem of to modify the position of the spin button from vertical to horizontal, which makes it less cooler. So kindly advise on how to rotate the spin button of the form control or if it is possible, I would like to put 2 different button in between the number for example < # > or - # + (the <> and -+ are the buttons, the # is number). By clicking one of the button will add or decrease the amount by one just like spin button of the form control. Thank you and kindly advise

    Below is the sample of the table.

    B
    C
    D
    1
    Car
    Produced
    In Progress
    2
    Car A
    1
    4
    3
    Item Amount Need to be produced
    4
    Chassis
    3
    1
    5
    Body
    2
    2
    6
    Tires
    1
    3
    7
    Engine
    4
    0
    Last edited by MasterThrone; 01-25-2016 at 12:54 AM.

  2. #2
    Registered User
    Join Date
    02-10-2011
    Location
    Cambridge, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Modifying Spin Button

    Quick and dirty method for 'horizontal' spin buttons on a UserForm

    Step 1:

    a) Use a blank worksheet and turn grid lines off
    b) Insert Shapes : two horizontal triangles back to back and close together
    c) Drawing Tools align and group the triangles
    d) Copy result to clipboard

    Step 2

    a) Insert a new Userform
    b) Add a Label control
    c) Rename Label to Spinner_Label
    d) Set Background style of Label to transparent
    e) Use Picture Property of Label to insert image currently held on clipboard
    f) Adjust size of Label to give as close a fit as possible

    Step 3

    a) Select MouseDown event for Label and enter:

    If X >= Spinner_Label.Width / 2 Then
    Call spin_up
    Else
    Call spin_down
    End If

    b) Set up the two handlers :

    Sub spin_up()
    MsgBox "Stuff resulting from incrementing the Spin Button"
    End Sub

    Sub spin_down()
    MsgBox "Stuff resulting from decrementing the Spin Button"
    End Sub

    You will obviously need to customise these for your specific needs

    Hope this helps


    Mordred

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] When does a Custom function get calculated?
    By tfurnivall in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-12-2013, 12:59 PM
  2. [SOLVED] MIN function not working on result of calculated cell
    By Maezee in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-27-2013, 04:19 PM
  3. SUMIFS function with calculated criteria
    By RollsWRangler in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2013, 11:35 AM
  4. Inserting Calculated Address as Text into Another Function
    By glessens in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2013, 03:08 AM
  5. Replies: 8
    Last Post: 12-09-2011, 11:15 PM
  6. [SOLVED] pivot table formulas for calculated field or calculated item
    By Vicky in forum Excel General
    Replies: 3
    Last Post: 06-06-2006, 12:10 AM
  7. [SOLVED] Can I use IF function in calculated fields in a pivot table?
    By Bloke in Excel Trouble in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-16-2006, 04:50 AM
  8. Can Function results be calculated?
    By FranksBank in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-21-2006, 09:25 AM

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