Excel VBA, Apply Fill Pattern to Column

Jump To:


Apply Fill Pattern to Column:

The following line of code applies the Reverse Diagonal Stripe fill pattern to column B:

Columns(2).Interior.Pattern = xlDown

Note: The intellisense may not work while working with the Columns member.

Before:

Excel VBA, Column Fill Pattern Before

After:

Excel VBA, Column Fill Pattern After


Modify Column’s Fill Pattern Color:

The line below changes the color of the fill pattern for column 2 to green:

Columns(2).Interior.PatternColor = ColorConstants.vbGreen

Note: The intellisense may not work while working with the Columns member.

Before:

Excel VBA, Column Fill Pattern After

After:

Excel VBA, Column Fill Pattern Color After
See also:

If you need assistance with your code, or you are looking for a VBA programmer to hire feel free to contact me. Also please visit my website  www.software-solutions-online.com

Leave a Reply

Your email address will not be published. Required fields are marked *