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.