+ Reply to Thread
Results 1 to 3 of 3

Automatically assigning a macro to a created shape

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    Nelson Bay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    28

    Automatically assigning a macro to a created shape

    Hello all,

    I have a macro that runs when I click on a shape. This macro is called "Shape_Click"

    I can apply that to a shape by selecting it and manually running this macro:

    Please Login or Register  to view this content.
    What I need help with is how do I get the subroutine to run as soon as the new shape has been selected, rather than haviong to manually run it.


    Something like "Sub Worksheet_ShapeAdded" or something like that? I can't work it out.

    Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Automatically assigning a macro to a created shape

    Duplicate. See http://www.excelforum.com/excel-prog...ml#post3803189

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    Nelson Bay, Australia
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Automatically assigning a macro to a created shape

    Sorry. My browser crashed as this was posting the first time and it didn't look like it went through.

+ 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. Automatically bringing a Shape into a Cell Using Shape Code
    By dineshtendulkar in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 12-16-2016, 02:25 PM
  2. Macro to export and import a module and assigning different macro automatically
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-14-2015, 06:31 PM
  3. Automatically assigning a macro to a shape I create
    By vonRobbo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2014, 10:04 AM
  4. Assigning Macros to Macro created ActiveX Control Box
    By sm9748 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-18-2013, 02:02 PM
  5. Assigning Macro to shape in 2007 - Crash!
    By ern2ern in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-12-2012, 11:32 AM

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