Persistent Conditional Formatting

scrupul0us

Well-known Member
Joined
Sep 7, 2004
Messages
641
I have added two conditions to my workbook (i tried recording this but to no avail) and whenever i cut/paste new data in I have to go back to conditional formatting and hit OK to have it reapply... is there a way to make the formatting persistent?

if it helps:

Condition 1:
Formula Is: =AND(MOD(ROW(),2)=1,ROW()<>1)
Format Is:
-backgroundColor = #FFFFCC
-borderLeftColor= #FFFFCC
-borderMidColor = #FFFFCC
-borderRightColor = #FFFFCC

Condition 2:
Formula Is: =AND(MOD(ROW(),2)<>1,ROW()<>1)
Format Is:
-backgroundColor = #FFFFFF
-borderLeftColor= #FFFFFF
-borderMidColor = #FFFFFF
-borderRightColor = #FFFFFF

Alternating row colors of pastel yellow and white with no visible cell borders that takes a header into account...

All text colors and fonts are the default... Can anyone possibly macro this so I can stick it in Workbook.OnChange or Workbook.OnUpdate

Thanks!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Perhaps using Edit|Paste Special...|Values (or Formulas if that suits what you are doing) instead of the standard Paste might help.
 
Upvote 0
I'd rather use a macro if at all possible... When I cut rows and right click I only get the option to insert the cut cells and not paste special...
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,509
Members
449,089
Latest member
RandomExceller01

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