LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default code for hiding rows-(coloured)

Hi Srinivasan,

You need to find the colorindex for a colour, and update it.

This simple code returns all the colorindex values as the row number

For i = 1 to 56
Cells(i,"A").Value = i
Cells(i,"B").Interior.Colorindex = i
Next i

--
HTH

Bob Phillips

"srinivasan" wrote in message
...


Thank a lot Mr Bob! It works nice. But if I want to change the color what
should I do?



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Coloured rows Tim New Users to Excel 9 November 28th 06 02:11 AM
How to code Macro for hiding rows Catherine Bond Excel Worksheet Functions 4 June 24th 06 10:13 AM
Coloured rows sonic-the-mouse New Users to Excel 1 May 29th 05 06:21 PM
Coloured rows sonic-the-mouse New Users to Excel 2 May 29th 05 01:16 AM
Is it possible to have a code that counts coloured cells? Fiona Excel Programming 4 February 14th 05 01:41 PM


All times are GMT +1. The time now is 06:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"