A macro with a 'for' loop to calculate and format cells in Microsoft ExcelOne way to loop through a range is to use the For...Next loop with the Cells property. Using the Cells property, you can substitute the loop counter (or other variables or expressions) for the cell index numbers. In the following example, the variable counter is substituted for the row index. The procedure loops through the range C2:C10, setting to bold any value that is greater than or equal to 18000. Now this process automates conditional formatting as shown in the training video! |
![]()
Custom Search
|