Excel VBA, Apply Fill Pattern to Sheet

Jump To:


Apply Fill Pattern to Sheet:

The following line of code applies the Reverse Diagonal Stripe fill pattern to sheet 1:

Sheet1.Cells.Interior.Pattern = xlDown

Before:

Excel VBA, Column Fill Pattern Before

After:

Excel VBA, Sheet Fill Pattern After


Modify Sheet’s Fill Pattern Color:

The line below changes the color of the fill pattern for Sheet 1 to green:

Sheet1.Cells.Interior.PatternColor = ColorConstants.vbGreen

Before:

Excel VBA, Sheet Fill Pattern After

After:

Excel VBA, Sheet Fill Pattern After Color

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 *