Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Conditional formatating

Can anybody help me with a VB-program do do this ?

I have a large daatasheet with integer. After each group of data the average
is calculated and the results are introduced as decimals which starts from
column B to U.
I do want to have a yellow backgrund colour from A to U in this row with
the averages. How can I do that in VB.

An anoter option is to give all cells containing decimal digits in the
entire sheet a yellow background.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Conditional formatating

If lngRow is the row number, the below code set the color index frm A to U

Range("A" & lngRow & ":U" & lngRow).Interior.ColorIndex = 6

If this post helps click Yes
---------------
Jacob Skaria


"Sverre" wrote:

Can anybody help me with a VB-program do do this ?

I have a large daatasheet with integer. After each group of data the average
is calculated and the results are introduced as decimals which starts from
column B to U.
I do want to have a yellow backgrund colour from A to U in this row with
the averages. How can I do that in VB.

An anoter option is to give all cells containing decimal digits in the
entire sheet a yellow background.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default Conditional formatating

Sorry that did not solve the task. The whole sheet was coloured yellow.
I want to have a yellow row if the rows cintaining decimal digit.

Jacob Skaria skrev:

If lngRow is the row number, the below code set the color index frm A to U

Range("A" & lngRow & ":U" & lngRow).Interior.ColorIndex = 6

If this post helps click Yes
---------------
Jacob Skaria


"Sverre" wrote:

Can anybody help me with a VB-program do do this ?

I have a large daatasheet with integer. After each group of data the average
is calculated and the results are introduced as decimals which starts from
column B to U.
I do want to have a yellow backgrund colour from A to U in this row with
the averages. How can I do that in VB.

An anoter option is to give all cells containing decimal digits in the
entire sheet a yellow background.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Conditional formatating

I have only answered the first part of your question

I do want to have a yellow backgrund colour from A to U in this row with
the averages. How can I do that in VB.


The below code with lngRow = 1 will set the first row A1:U1 to yellow.

Range("A" & lngRow & ":U" & lngRow).Interior.ColorIndex = 6



--
If this post helps click Yes
---------------
Jacob Skaria


"Sverre" wrote:

Sorry that did not solve the task. The whole sheet was coloured yellow.
I want to have a yellow row if the rows cintaining decimal digit.

Jacob Skaria skrev:

If lngRow is the row number, the below code set the color index frm A to U

Range("A" & lngRow & ":U" & lngRow).Interior.ColorIndex = 6

If this post helps click Yes
---------------
Jacob Skaria


"Sverre" wrote:

Can anybody help me with a VB-program do do this ?

I have a large daatasheet with integer. After each group of data the average
is calculated and the results are introduced as decimals which starts from
column B to U.
I do want to have a yellow backgrund colour from A to U in this row with
the averages. How can I do that in VB.

An anoter option is to give all cells containing decimal digits in the
entire sheet a yellow background.

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
Conditinal formatating Sverre Excel Programming 1 April 27th 09 04:40 PM
Conditional Rank (or rather, Conditional Range) [email protected] Excel Worksheet Functions 6 April 16th 07 06:15 PM
Conditional Formatting that will display conditional data BrainFart Excel Worksheet Functions 1 September 13th 05 05:45 PM
Multiple conditional on conditional format formula Frank Kabel Excel Programming 1 July 27th 04 06:24 PM
Multiple conditional on conditional format formula Bob Phillips[_7_] Excel Programming 0 July 27th 04 05:30 PM


All times are GMT +1. The time now is 08:15 AM.

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

About Us

"It's about Microsoft Excel"