Hello,
I have an excel workbook with multiple worksheets and each sheet has it's own conditional format rules. Those rules were made without vba. I'm just curious if there's a way to prevent changes to those conditional format rules on each worksheet using vba?
The problem is when I copy and paste a row (using ctrl-v), it'll copy the conditional format rule. For example, using a conditional format with formula INDIRECT("A"&ROW())="x" for range $A$1:$S$10000 will make all cells within a row fill a certain color if "x" is entered in Column A for said row in that range. But, if I for example ctrl+v values from row 1 to row 2, the format rule will automatically change the range and create a copy of the rule to that specific row, i.e. $A$1:$S$10000 may become two rules for the same format: 1)$A$1:$S$1,$A$3:$S$10000 and 2)$A$2:$S$2. Eventually there could be hundreds or thousands of the same rule due to ctrl+v. I realize I can easily get around this by only pasting formulas or values but not everyone who using this spreadsheet will do that, they'll just use ctrl+v. Is there a simple vba procedure to enter for each sheet just to prevent changes to the conditional format rules so users can still use ctrl+v? None of the sheets are protected.
I haven't looked into writing the conditional format rules for each sheet in vba instead. If that would be easier than what I ask for above, let me know and I'll look into that. There's a lot of conditional format rules on each sheet though so I think using vba for the conditional format rules would be complicated.
Thanks in advance!
Bookmarks