+ Reply to Thread
Results 1 to 6 of 6

Have spin button call macro repeatedly when mouse button is held down

  1. #1
    Registered User
    Join Date
    06-11-2018
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    19

    Have spin button call macro repeatedly when mouse button is held down

    Hi, when I click spin button macro is executed, which adds 1 to "F1" Cell. But no mother how long I hold the spin button it executes macro only one time. Does anybody knows how to make it execute my macro as many times an iterations happend?
    Attached Files Attached Files

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,756

    Re: Spin button

    Use an ActiveX button instead of a Form button. The Form button only calls the macro on a click. The ActiveX has an event called Change that fires every time the value of the spin button changes, including when you are holding down the mouse button.
    Attached Files Attached Files
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,756

    Re: Have spin button call macro repeatedly when mouse button is held down

    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #1 requires good titles. I have updated it for you this time to keep things moving. Please give it more thought in the future. --6StringJazzer

  4. #4
    Registered User
    Join Date
    06-11-2018
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    19

    Re: Have spin button call macro repeatedly when mouse button is held down

    Thanks! I was aware of this fact, but I left title edition for the end and forgot about it. Thanks, anyway.

  5. #5
    Registered User
    Join Date
    06-11-2018
    Location
    Poland
    MS-Off Ver
    2016
    Posts
    19

    Re: Spin button

    You have solved with that all my problems for the week. I thought I won't be able to change charts by holding a button, but it does it!
    I'm very thankful. Have a nice day!

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,756

    Re: Have spin button call macro repeatedly when mouse button is held down

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon addreputationiconsmall.jpg below their name.

+ 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. ActiveX Control Spin Button Copy Button and Change Cell reference?
    By chrstphrbllngs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2016, 04:01 PM
  2. Macro after Spin Button operated
    By Southernw2002 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2014, 12:59 AM
  3. [SOLVED] Help with Spin Button. Set Spin button starting value based on a text box value
    By etuckram in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-18-2014, 10:05 AM
  4. Spin Button / Macro
    By nogoodnames in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2013, 11:05 AM
  5. [SOLVED] Excel 2007 : Spin Button Macro
    By traimaran in forum Excel General
    Replies: 2
    Last Post: 04-28-2012, 11:55 AM
  6. Replies: 2
    Last Post: 03-12-2008, 06:52 PM
  7. Replies: 1
    Last Post: 03-14-2005, 04:06 AM

Tags for this Thread

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