Run a Macro only for specific cells

PeriGr 11 Posts Monday July 17, 2017Registration date August 12, 2017 Last seen - Jul 31, 2017 at 02:45 AM - Latest reply: PeriGr 11 Posts Monday July 17, 2017Registration date August 12, 2017 Last seen
- Jul 31, 2017 at 04:04 AM
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 

Your reply

2 replies

stankirsolkar 6 Posts Friday July 28, 2017Registration date July 31, 2017 Last seen - Jul 31, 2017 at 03:21 AM
0
Thank you
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 11 Posts 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!
Respond to stankirsolkar