Results 1 to 13 of 13

Spin button event handling

Threaded View

  1. #1
    Registered User
    Join Date
    11-26-2008
    Location
    Michigan, USA
    Posts
    18

    Spin button event handling

    Hello,

    First, I apologize if this has been asked and solved before. I did a quick search, but couldn't find anything similar to what I'm asking, and I've spent many hours looking through various pages Google has told me were relevant (and most of the time, weren't relevant at all).

    The issue I'm having is with the ActiveX Spin Button (in 2007, formerly in the Control toolbox in 2003). I need the Spin Button to call a certain macro whenever it is clicked up or down. I know how to do this with one spin button, the problem is that the workbook I'm creating could potentially have dozens (or even hundreds) of these spin buttons that all need to call the same macro. It doesn't seem feasible to have to create separate Change event functions for each of these.

    My company used to use the simpler form controls for this process, but a situation has come up where we need the ability to make the buttons invisible, or at least appear disabled, and that doesn't seem doable with the form controls.

    So my question is, is there a way to specify in my workbook that whenever a spin button is clicked, this particular macro is to be called? Or even, whenever an ActiveX object is clicked, call the macro, because the spin buttons will be the only ActiveX objects in the workbook. I've read a bit about how to create global event handlers for worksheets and workbooks, but I can't find anything related to spin buttons specifically.

    Any help is appreciated, even if it's just to tell me that it can't be done. Thanks very much!
    Last edited by d3hartm2; 12-02-2008 at 10:15 AM.

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