Choose your language

Alternate Color

Basic Exercise


Statement

Create a macro that paints table rows by alternating between white (or no fill) and light gray.


Suggested Concepts:

Remember that in most cases there is more than one way to solve the exercise.

Use Step to change the counter increase without using the For Next loop.


Show Answer

Download exercise Download answer



SuperExcelVBA.com is learning website. Examples might be simplified to improve reading and basic understanding. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. All Rights Reserved.

Excel ® is a registered trademark of the Microsoft Corporation.

© 2019 SuperExcelVBA | ABOUT

Protected by Copyscape