K
kevinm
Paul,
thanks for the pointer. Although I don't fully understand the VB code, if
the comments in the example code are anything to go by this would perform the
color copying from the cell on sheet1 to a different cell on sheet2.
The part I am still missing is how to read the cell contents on sheet1 and
use that to determine the target cell location on sheet2. I will quote the
simplified example from my earlier post ..
Step1. Read cell value for first item in Sheet1 column A (A1 value = "C3")
Step2. Check the color format of the cell two columns to the right
(colored RED)
Step3. Go to Sheet2, color the cell whose reference was determined in
Step1 (C3) the color identified in Step2.
Step4. Read the cell value for the second item in Sheet1 column A (A2
value = "D2")
Step5. Check the color format of the cell two columns to the right
(colored BLUE)
Step6. Go to Sheet2, color the cell whose reference was determined in
Step4 (D2) the color identified in Step5.
Step7. Read the cell value for the third item in Sheet1 column A (A2 value
= "A4")
etc,
etc
regards,
Kevin
thanks for the pointer. Although I don't fully understand the VB code, if
the comments in the example code are anything to go by this would perform the
color copying from the cell on sheet1 to a different cell on sheet2.
The part I am still missing is how to read the cell contents on sheet1 and
use that to determine the target cell location on sheet2. I will quote the
simplified example from my earlier post ..
Step1. Read cell value for first item in Sheet1 column A (A1 value = "C3")
Step2. Check the color format of the cell two columns to the right
(colored RED)
Step3. Go to Sheet2, color the cell whose reference was determined in
Step1 (C3) the color identified in Step2.
Step4. Read the cell value for the second item in Sheet1 column A (A2
value = "D2")
Step5. Check the color format of the cell two columns to the right
(colored BLUE)
Step6. Go to Sheet2, color the cell whose reference was determined in
Step4 (D2) the color identified in Step5.
Step7. Read the cell value for the third item in Sheet1 column A (A2 value
= "A4")
etc,
etc
regards,
Kevin
paul said:Kevin/Gordon this
http://www.microsoft.com/office/com...misc&mid=573ae59f-ded9-4dad-aa11-2c0acdd69cbc
thread lead me to this
http://www.mvps.org/dmcritchie/excel/colors.htm
page,and the macro below it looks like this could be what kevin is after???
Setting Interior Color based on another Cell (#popbased)
Option Explicit
Global gblColorIndex As Integer
Sub SetInteriorColor()
gblColorIndex = ActiveCell.Interior.ColorIndex
End Sub
Sub PutInteriorColor()
Selection.Interior.ColorIndex = gblColorIndex
End Sub
Sub SameInteriorAsA1()
Selection.Interior.ColorIndex = [A1].Interior.ColorIndex
End Sub
--
paul
remove nospam for email addy!
kevinm said:Gord,
no worries, a few days isn't going to cause me any problem. Besides, when we
have this working it will probably save me days of work and pain anyway,
Kevin