I am trying to create a macro that recreates the conditional formatting each time a cell is dragged and dropped
As the conditional formatting code is complex, I tried to use Excel's macro recorder to create the code for me.
A (much reduced) bit of the code is below, which aims to set borders on cells A1:AF11. I have set the formula to be "=TRUE" as all of cells A1:AF11 need to be set in this way [I realise that conditional formatting is not necessary here - the other 30+ bits of code which I haven't posted are "proper" conditional formats!]
Every time I run it, the line .LineStyle = xlContinuous gives me an error. How can I fix this?
Bookmarks