+ Reply to Thread
Results 1 to 4 of 4

Run Macro when I click on a cell

  1. #1
    Registered User
    Join Date
    08-18-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    41

    Run Macro when I click on a cell

    Hi,

    New to this, but I have record a simple macro that run on keyboard press.

    Is there any way to change it so that the macro will run when I click on eg. Cell A10

    Also, I want the macro to select the whole of Column X and Y, but it seems to mess up and select other rows everytime.


    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Thanks in advance!

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Run Macro when I click on a cell

    On selection of A10

    Copy this code in to Sheet code.

    Please Login or Register  to view this content.
    For selecting X and Y column, replace

    Please Login or Register  to view this content.
    with

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-18-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    41

    Re: Run Macro when I click on a cell

    For the what I want to do here, I can simply paste the macro inside the area right?

    Thanks a lot for the help!


    Sent from my iPhone using Tapatalk

  4. #4
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: Run Macro when I click on a cell

    Sorry, I didn't really give you any code for what you want to do. This code gets activated when you click on A10, that's it. But what you want this code to do is something you have to do decide and write.

+ 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. A macro to right click a cell and select a item from the right click menu?
    By Peavey in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-13-2014, 10:55 AM
  2. [SOLVED] click any cell and run the macro
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-22-2012, 07:52 AM
  3. Click on a cell to run a macro
    By luffield in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2009, 12:49 PM
  4. Click cell to run macro
    By jcarstens in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2007, 02:41 AM
  5. [SOLVED] RE: Macro on cell click??
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2006, 05:40 PM

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