ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Excel program (https://www.excelbanter.com/excel-discussion-misc-queries/55320-excel-program.html)

gill santiago

Excel program
 
How do I format 1000 lines odd or even cell rows simultaneously using pattern
texture, i can do the individual rows to format using pattern texture but not
100 or 1000 lines

Chip Pearson

Excel program
 
Try something like the following

Dim LastRow As Long
Dim RowNdx As Long

LastRow = Cells(Rows.Count, "A").End(xlUp).Row
For RowNdx = 1 To LastRow Step 2
Rows(RowNdx).Interior.ColorIndex = 6
Next RowNdx



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"gill santiago" <gill wrote
in message
...
How do I format 1000 lines odd or even cell rows simultaneously
using pattern
texture, i can do the individual rows to format using pattern
texture but not
100 or 1000 lines





All times are GMT +1. The time now is 09:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com