This sample demonstrates how you can select a range of cells and then apply style to the selected range.