+ Reply to Thread
Results 1 to 4 of 4

Macro to run on button click

  1. #1
    Forum Contributor
    Join Date
    08-09-2006
    Posts
    147

    Macro to run on button click

    How can I make the following macro run on a button click instead of a change?
    Please Login or Register  to view this content.
    I tried just changing the


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    But it didn't work.
    Last edited by rlkerr; 10-10-2012 at 04:24 PM. Reason: code

  2. #2
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Macro to run on button click

    Are you using a user form? If not just create a button on your work sheet and tie it to the macro.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Macro to run on button click

    Or are you asking for it to run when ANY button is clicked? if you have control buttons for other macros just add a call command at the beginning or end of your macro depending on how you want it to work.

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    08-09-2006
    Posts
    147

    Re: Macro to run on button click

    Thanks. It works fine. Thanks for you help.

+ 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