Alternate Row Colors in Range

前端 未结 8 1653
轻奢々
轻奢々 2020-12-09 13:13

I\'ve come up with the following to alternate row colors within a specified range:

Sub AlternateRowColors()
Dim lastRow as Long

lastRow = Range(\"A1\").End(         


        
8条回答
  •  悲&欢浪女
    2020-12-09 13:37

    In my Excel 2010, there is an option to format as table, where you can also select a range and headers. No need for scripting.

提交回复
热议问题