+ Reply to Thread
Results 1 to 6 of 6

Running macro when cell changes?

  1. #1
    Registered User
    Join Date
    02-24-2014
    Location
    Mission, Texas, United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Running macro when cell changes?

    Hello! New to the forum!

    I wanted to know if there is any way of making this macro run automatically whenever "G53:G60" changes?

    I am new to macros and don't really know if I am doing this correctly.

    Thanks in advance!





    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Running macro when cell changes?

    Hi, and welcome to the forum!

    There sure is a way to do that. In the Worksheet module for the correct worksheet, just copy and paste this code:
    Please Login or Register  to view this content.
    An alternative (and probably cleaner way) would be:
    Please Login or Register  to view this content.
    I hope this helps

  3. #3
    Registered User
    Join Date
    02-24-2014
    Location
    Mission, Texas, United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Running macro when cell changes?

    Hi ajryan88! Thank you for the quick response. Sorry I couldn't get back to you faster.

    Anyway, I am so sorry for the troubles but I just cannot get it to work, I would greatly appreciate it if you could help me out. I will attach the worksheet I am working with. In the sheet "home" I want to sort the tables I have from biggest percentage to lowest percentage automatically when I input new data. Basically, sort column F with the percentage of column G.

    rendimiento.xlsx

    Thanks in advance once again.

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Running macro when cell changes?

    Try this.

    The code is in the Worksheet_Calculate event of the Home worksheet
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-24-2014
    Location
    Mission, Texas, United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Running macro when cell changes?

    Thank you so much! This is exactly what I needed!

  6. #6
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Running macro when cell changes?

    You're welcome

    Please don't forget to click on the * next to my post to say thanks and add to my reputation

+ 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. [SOLVED] Macro for running a macro when any cell in a range of cells changes
    By gm2612 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-27-2013, 11:36 PM
  2. Macro Cell Error At Cell message when running Solver in VBA
    By Eharr3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2013, 03:36 PM
  3. Replies: 2
    Last Post: 06-03-2012, 03:33 PM
  4. Running a macro if more than one cell changes?
    By drucey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2007, 06:18 PM
  5. running a macro when a certain cell changes
    By Jeffreak in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-06-2005, 10:09 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