Results 1 to 3 of 3

Thread: How to assign macros to graphics ?

  1. #1
    Join Date
    Feb 2009
    Posts
    58

    How to assign macros to graphics ?

    hey friends,

    We all know that Microsoft Excel allows us to add graphics and pictures to our worksheets. I was wondering if I can create and add macro to the graphics such that whenever I click on the graphic, the respective macro is executed and performs the required action. My question is how can I assign the macro to the graphics ?

    plz help.....thanks

  2. #2
    Join Date
    May 2008
    Posts
    3,316

    Re: How to assign macros to graphics ?

    To assign a macro to a graphic, follow these steps:

    • Right-click on the graphic - Excel displays a Context menu.
    • Select the Assign Macro option from the Context menu - Excel displays the Assign Macro dialog box.
    • Select the macro you want associated with the graphic.
    • Click on OK.


    Save your workbook and test out your assignment by clicking on the graphic. The macro should run, as desired.

  3. #3
    Join Date
    Apr 2008
    Posts
    4,088

    Re: How to assign macros to graphics ?

    With macros, you can do lots of things....once the macro is created, you can assign an existing macro to a menu item, toolbar button, graphics (and pictures) or also keyboard shortcut.

Similar Threads

  1. Tips for Learning VBA & macros
    By Lanka Boy in forum Education Career and Job Discussions
    Replies: 2
    Last Post: 08-01-2012, 12:00 PM
  2. What is the use of macros in the word?
    By bharti_rajpal in forum Windows Software
    Replies: 3
    Last Post: 07-12-2009, 01:41 PM
  3. How to Run Excel Macros from ASP
    By Chain-SmokeR in forum Software Development
    Replies: 2
    Last Post: 04-07-2009, 12:23 PM
  4. Macros in Word
    By DanB in forum Windows Software
    Replies: 1
    Last Post: 02-06-2009, 08:09 AM
  5. What is MACROS in programming?
    By Claudius in forum Software Development
    Replies: 3
    Last Post: 06-03-2009, 12:49 PM

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
  •  
Page generated in 1,714,102,372.42459 seconds with 16 queries