Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default excel2000-question

To make the background color of a cell changes, depending on the value that
is in it, I use conditional format.

Is it also possible to change the background color of some cells, depending
on the value in another cell?

txs
Johan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default excel2000-question

I don't know exactly how to do so, but I'll bet it could be done in VBA.
Have you searched
VBA Help?

Ed

"piet" wrote in message
...
To make the background color of a cell changes, depending on the value

that
is in it, I use conditional format.

Is it also possible to change the background color of some cells,

depending
on the value in another cell?

txs
Johan




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default excel2000-question

you could do conditional formating to test if those cells have something
in them. Or if they don't you could trick it and have a formula linked
in the cells but change the color of the text to be the background
color so it is invisible, then run a conditional test on that data. It
is ugly but works.

Keith
www.kjtfs.com


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default excel2000-question

in your conditional formatting, just reference the other cell

cell is equal to another cell.

If you want the condition to be solely dependent on another cell, change the
Cell is dropdown in conditional formatting to formula is. Then put in a
formula that will produce a true or false result in accordance with the
conditions you want to test. Use absolute and relative cell references as
appropriate if you need to format multiple cells.

--
Regards,
Tom Ogilvy


piet wrote in message
...
To make the background color of a cell changes, depending on the value

that
is in it, I use conditional format.

Is it also possible to change the background color of some cells,

depending
on the value in another cell?

txs
Johan




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default excel2000-question

Yes.

Sub ColoredCells()
If Cells(3, 3).Value = "01" Then
Cells(5, 5).Interior.ColorIndex = 1
End If
End Sub

Or....

Sub ColoredCellsVar1()
Dim i As Integer
For i = 1 To 10
If Cells(i, 3).Value = "01" Then
Cells(i, 4).Interior.ColorIndex = 1
End If
Next i
End Sub

Rick

Merry Christmas and Happy Holidays!!!

-----Original Message-----
To make the background color of a cell changes, depending

on the value that
is in it, I use conditional format.

Is it also possible to change the background color of

some cells, depending
on the value in another cell?

txs
Johan


.



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
why Excel2000 don't allow to write ldiaz Excel Discussion (Misc queries) 4 November 2nd 06 03:20 AM
Printing in Excel2000? PaulM Excel Worksheet Functions 2 November 4th 05 12:38 AM
compiling VBA in Excel2000 Juggernath Excel Programming 2 November 12th 03 03:06 PM
USERFORM in Excel2000 Bjorn Smink Excel Programming 0 November 11th 03 12:38 PM
Excel2000 VB Help Problem! skc[_2_] Excel Programming 0 July 9th 03 11:08 AM


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