Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 19
Default How to insert color in row or cell?

HI all,

Ok so I got the part about inserting a blank row everytime there is a
sequence change in a particular column but.

Then how do I then add color to the inserted row? I just wanna make it
easier for my viewer to see thier data once its broken up.

Thank you,

Sam

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default How to insert color in row or cell?

Sam

I missed the original solution for inserting the row but whatever you are
using to insert the row, say

Rows(x).Insert

then use

rows(x).interior.color=rgb(255,0,0)

Where x in all cases is the row number and 255,0,0 will give you red

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England

HIS
www.nickhodge.co.uk

"Sam" wrote in message
oups.com...
HI all,

Ok so I got the part about inserting a blank row everytime there is a
sequence change in a particular column but.

Then how do I then add color to the inserted row? I just wanna make it
easier for my viewer to see thier data once its broken up.

Thank you,

Sam



  #3   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 19
Default How to insert color in row or cell?

Thank you Nick, I tweaked with the code to fit my needs and it was
exactly what was needed!

Thank you!

Sam

Nick Hodge wrote:
Sam

I missed the original solution for inserting the row but whatever you are
using to insert the row, say

Rows(x).Insert

then use

rows(x).interior.color=rgb(255,0,0)

Where x in all cases is the row number and 255,0,0 will give you red

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England

HIS
www.nickhodge.co.uk

"Sam" wrote in message
oups.com...
HI all,

Ok so I got the part about inserting a blank row everytime there is a
sequence change in a particular column but.

Then how do I then add color to the inserted row? I just wanna make it
easier for my viewer to see thier data once its broken up.

Thank you,

Sam


Reply
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
Recognize Color and Insert Symbol Che Excel Worksheet Functions 6 February 9th 09 03:30 PM
Insert value based on color of the cell aberdonian user Excel Worksheet Functions 3 December 17th 07 07:47 PM
Excel: Syntax to change cell color based on color of another cell davew18 Excel Worksheet Functions 1 January 4th 07 01:24 PM
how to insert and color these rows Faye[_2_] Excel Programming 0 September 13th 05 03:39 PM
how to insert and color these rows Faye[_2_] Excel Programming 0 September 13th 05 03:17 PM


All times are GMT +1. The time now is 06:10 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"