Hi,
Wondering if anyone can help or advise
I have a sheet that has 3 columns with multiple conditional formatting rules to basically change the cell fill to red, orange or green depending on the date and what is in adjacent cells.
The conditional formatting is working fine on my sheet but when I try and copy and pastespecial in vba it is always filling them red - and not seeming to see the other rules that are overriding the red rule (these are formula rules).
The upshot is that I am trying to paste into an email (I've got the email part fine) but it's not picking up some of the formatting rules and all the cells end up getting pasted into the email with red fill - obviously not what I want to do.
I've tried various additions to the code that I've found online to replace the conditional formatting with fixed formatting but still the same result - it's not picking up the other overriding formula conditional formats and I end up with all red boxes.
Can anyone help?
The copy paste code I'm using is this:
Any help would be greatly appreciated
Thanks
Tom
Wondering if anyone can help or advise
I have a sheet that has 3 columns with multiple conditional formatting rules to basically change the cell fill to red, orange or green depending on the date and what is in adjacent cells.
The conditional formatting is working fine on my sheet but when I try and copy and pastespecial in vba it is always filling them red - and not seeming to see the other rules that are overriding the red rule (these are formula rules).
The upshot is that I am trying to paste into an email (I've got the email part fine) but it's not picking up some of the formatting rules and all the cells end up getting pasted into the email with red fill - obviously not what I want to do.
I've tried various additions to the code that I've found online to replace the conditional formatting with fixed formatting but still the same result - it's not picking up the other overriding formula conditional formats and I end up with all red boxes.
Can anyone help?
The copy paste code I'm using is this:
Code:
Range(Cells(9, "A"), Cells(Lrow, lcol - 1)).Copy
With Sheets("EMAIL TOOL").Range("A1")
.PasteSpecial xlPasteFormats
.PasteSpecial xlPasteValues
Any help would be greatly appreciated
Thanks
Tom