Category Archives: Border Style

No Thumbnail

Excel VBA Borders

One of the most common things you will be working with in Excel are borders. In this article I’ve have briefly explained the different customizations you can apply to borders using VBA for Excel. I’ve also provided links to more detailed explanations for each section. Jump

No Thumbnail

Excel VBA, Border Style and Thickness

In this article I will explain how you can modify border thickness and style using VBA for Excel. For more information about creating borders please see Excel VBA, Create Border. In that article I’ve explained how you can create a border for the different sections of a

No Thumbnail

Excel VBA, Remove Border

In this article I will explain how you can remove borders from a range of cells. Removing borders is similar to creating borders. All you have to do is set the .LineStyle property to xlNone. For more information about creating borders please see Excel VBA,

No Thumbnail

Excel VBA Formatting Cells and Ranges Using the Macro Recorder

By formatting cells and ranges you can give your worksheets a better look. Formatting applies to the following: The number format: Numeric, Date, Scientific … Text Alignment: Horizontal, Vertical, Orientation … Text Control: Wrap Text, Shrink to fit, Merge Cells … Text Direction Font Type:

No Thumbnail

Excel VBA Border Colors

One of the things you probably want to modify when working with borders in VBA for Excel is the border color. Previously I’ve explained about colors in the article VBA Excel Colors. Therefore I’m assuming readers are familiar with the basic concept of working with

No Thumbnail

Excel VBA, Get Border Properties

In this article I will explain how you can check if a cell has a border or not using VBA for Excel. I have also explained how you can get the different border properties using VBA. Jump To: Example 1, Check If Border Exists Example

No Thumbnail

Excel VBA, Create Border

In this article I will explain how you can make basic borders using VBA for Excel. Each range of cells can accept up to 8 different types of borders: Left edge (xlEdgeLeft) Top edge (xlEdgeTop) Bottom edge (xlEdgeBottom) Right edge (xlEdgeRight) Inside vertical (xlInsideVertical) Inside horizontal (xlInsideHorizontal) Diagonal down