there are two different ways that you can use to apply borders to a cell using VBA code. Border and BorderAround Method. To use both of these