ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   fill row color on a specified worksheet (https://www.excelbanter.com/excel-programming/308687-re-fill-row-color-specified-worksheet.html)

Tom Ogilvy

fill row color on a specified worksheet
 

if you have an unqualified range, it refers to the active sheet.

to be specific, qualify your range

worksheets("Sheet2").Range("2:3").Interior.ColorIn dex = 5

--
Regards,
Tom Ogilvy



"Jeff" wrote in message
...
I am trying to fill 2 colors on different rows on the 2nd worksheet. the
colors are filled to the right rows, but wrong worksheet (it always fills

the
1st worksheet instead).






All times are GMT +1. The time now is 05:19 PM.

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