It seems that the code sets the border, but doesn't reset... I changed the code as below.
Set cell A1, B1, C1, D1, to resp "0", "1", "2", "3". Lets refer to as "controlling cells"
set cell A4, B4, C4, D4 to =DrawLine(A1), =DrawLine(B1), =DrawLine(C1), =DrawLine(D1),
What happens is that cell B4 and C4 will get a DiagonalUp border, respectivly a DiagonalDown border. Cells A4 and D4 gets a comment
Now change cells A1 to 1, then to 2, then to 3 What happens is that indeed the comment field follows the "controlling cell", but the Diagonal borders are just added and never removed... So ".LineStyle = xlNone" does not clear the border...
Would it anyway possible to let the function behave as expected?
Bookmarks