+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : How to assign a macro to a cell?

  1. #1
    Registered User
    Join Date
    08-08-2008
    Location
    Johannesburg
    MS-Off Ver
    2007
    Posts
    55

    How to assign a macro to a cell?

    Hi All
    the cell D4 contain the number 4.
    How do I execute a macro from that cell?

    Thanks for your help.

    Furiousfox
    Last edited by furiousfox; 08-26-2009 at 05:14 PM.
    Using Excel 2007.
    Amit Cohen

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: How to assign a macro to a cell?

    You would need to use a worksheet event.

    Either the selectionchange of change event.
    You will need to test the Target cell is actually D4

    right click sheet tab and View code.
    paste the following.
    Please Login or Register  to view this content.
    When you select D4 the message will appear.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    08-08-2008
    Location
    Johannesburg
    MS-Off Ver
    2007
    Posts
    55

    Re: How to assign a macro to a cell?

    Hi
    It's 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)

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