Hello
Try.
<font face=Courier New><SPAN style="color:#00007F">Sub</SPAN> test()<br> <SPAN style="color:#00007F">Static</SPAN> a <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">Integer</SPAN><br> <SPAN style="color:#00007F">With</SPAN> Selection<br> <SPAN style="color:#00007F">Select</SPAN> <SPAN style="color:#00007F">Case</SPAN> a<br> <SPAN style="color:#00007F">Case</SPAN> 0 <SPAN style="color:#007F00">'Bottom border</SPAN><br> .Borders.LineStyle = xlNone <SPAN style="color:#007F00">'Clear All</SPAN><br> .Borders(xlEdgeBottom).Weight = xlThin<br> <SPAN style="color:#00007F">Case</SPAN> 1 <SPAN style="color:#007F00">'All borders</SPAN><br> .Borders.LineStyle = xlNone <SPAN style="color:#007F00">'Clear All</SPAN><br> .Borders.Weight = xlThin<br> <SPAN style="color:#00007F">Case</SPAN> 2 <SPAN style="color:#007F00">'Thick border</SPAN><br> .Borders.LineStyle = xlNone <SPAN style="color:#007F00">'Clear All</SPAN><br> .BorderAround ColorIndex:=xlAutomatic, Weight:=xlThick<br> <SPAN style="color:#00007F">Case</SPAN> 3 <SPAN style="color:#007F00">'No border</SPAN><br> .Borders.LineStyle = xlNone <SPAN style="color:#007F00">'Clear All</SPAN><br> <SPAN style="color:#00007F">End</SPAN> Select<br> <SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">With</SPAN><br> a = a + 1<br> <SPAN style="color:#00007F">If</SPAN> a > 3 <SPAN style="color:#00007F">Then</SPAN> a = 0<br><SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN><br></FONT>