+ Reply to Thread
Results 1 to 3 of 3

Assign macro on spin button on sheet (form control)

  1. #1
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Assign macro on spin button on sheet (form control)

    How do I assign a macro so that the up and down button work, I want to create a macro between 1 and 12, if the up button is clicked and the value reaches 12 the next number must be 1 and carry on, the same for the down button, once it reach 1 the next number must be 12 again and carry on. This is easy on a userform.
    Regards
    LAD

  2. #2
    Valued Forum Contributor spitfireblue's Avatar
    Join Date
    01-29-2015
    Location
    Adelaide, Australia
    MS-Off Ver
    2007,2010,2016
    Posts
    611

    Re: Assign macro on spin button on sheet (form control)

    Hi,

    Just right click on the object and select Assign Macro

    Example.xlsm

    Stephen

  3. #3
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Re: Assign macro on spin button on sheet (form control)

    thx Stephen, how to code it was the problem for me.

+ 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] Using macro to create a Form Control Button and Assign macro to it in a specified Cell
    By weige1989 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2014, 11:51 AM
  2. [SOLVED] How do I assign the the current value of a spin button over the top of the default value?
    By redsab in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-13-2013, 12:03 AM
  3. Have checkbox change properties of spin button (form control)
    By spookymyo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-19-2013, 04:19 AM
  4. Spin button for inventory control
    By Spreadsheet impaired in forum Excel General
    Replies: 2
    Last Post: 11-25-2012, 03:48 PM
  5. how to assign a different macro to each*combobox selection in form control....
    By kritigupta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-03-2012, 03:04 AM
  6. how to assign a different macro to each*combobox selection in form control....
    By kritigupta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-02-2012, 07:51 PM
  7. Assign Macro to Button control
    By krishnarao in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2007, 04: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