Report

Run a Macro only for specific cells

Ask a question PeriGr 11Posts Monday July 17, 2017Registration date August 12, 2017 Last seen - Last answered on Jul 31, 2017 at 04:04 AM by PeriGr
Hello,

can you please help me with one problem I am currently having with Excel Macro? I want to be able to run a macro only for specific cells ... not for the whole sheet of the excel. Is it possible?

See more 
Helpful
+0
plus moins
What does the Macro do? It's difficult to help without having more context.

You will have to change the code and specify the cells in which you want it to run.
PeriGr 11Posts Monday July 17, 2017Registration date August 12, 2017 Last seen - Jul 31, 2017 at 04:04 AM
Yes sorry for the vague question! Ok so my macro is responsible for comparing values between two columns of cells and if the diffrence is bigger than 5 , copy pasting the rows that the comparing cells belong to another sheet... So far so good.. I have built it and it works perfectly. But, since I add new rows daily in the basic sheet where I run the macro, I dont want the macro to compare values from previous days every time.. I want it to be able to run for specific cells (without having to change the code each time).. For example, I want to be able to underline or to mouse-choose the rows that I want to be checked, and the macro to run just for them!
Reply
Leave a comment

Member requests are more likely to be responded to.

Members can monitor the statuses of their requests from their account pages.

A CCM membership gives you access to additional options.

Not a member yet?

Sign up now. It takes less than a minute and is completely free!