How do I allow for a macro to hilight something, and have another macro to delete it?

u635858

New Member
Joined
Oct 23, 2018
Messages
3
Hi,
I currently have a macro to enable conditional formatting to highlight a row dependent on 1 cell. I can do this fine.
The problem is that when I add another macro to remove this conditional formatting, to go back to the original workbook, I can no longer run the original macro to put the highlight on. -> The workbook just stays blank like in the original.
Is there anyway that I can do both at the same time?
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
.
Not certain I understand the process but ... it sounds like you are highlighting a row in (say) Workbook #1 . Then you go, via a macro, to Workbook #2 ?

Are you "activating" and "selecting" WB #2 in the macro ? If so, when you return to WB #1 , are you also activating and selecting WB #1 to make it the active WB
before attempting to highlight a row ?

Hope that makes sense.

If the above is not correct, post your code for review.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top