I am trying to create a simple function that will add borders around every cell in a certain range. Using the wonderful recording this generates a ton of code which is quite
For adding borders try this, for example:
Range("C11").Borders(xlEdgeRight).LineStyle = xlContinuous Range("A15:D15").Borders(xlEdgeBottom).LineStyle = xlContinuous
Hope that syntax is correct because I've done this in C#.