+ Reply to Thread
Results 1 to 3 of 3

Assigning macro to a button icon in spreadsheet

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    Pa USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Cool Assigning macro to a button icon in spreadsheet

    How do I create a button, place it in the spreadsheet and assign a pre-existing macro to it? Currently I'm using a [ctrl + key] to run the macro, but I want to make it easier for others to use.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Assigning macro to a button icon in spreadsheet

    just get a button from the forms tool bar the first thing youll see as you do it is assign macro
    or get a command button from the control toolbox
    right click it view code
    then just put your macro name like this (where mymacro1 is the name of your existing macro)
    Please Login or Register  to view this content.
    edit the button label as you see fit in commandbutton object
    then click the triangle thingy in the left hand side of the command tool bar to exit design mode
    Last edited by martindwilson; 10-21-2010 at 06:54 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    Pa USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Talking Re: Assigning macro to a button icon in spreadsheet

    Perfect! Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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