I have Excel 2002 and I want to use it to generate RGB color swatches for printer/scanner/monitor calibrations.
I can generate one swatch, let's say in cell b2 with the RGB values (0-255)in cells a2, a3, and a4 with this sheet code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("a2:a4")) Is Nothing Then Exit Sub
[b2].Interior.Color = RGB([A2], [A3], [A4])
End Sub
Changing any of the "a" values in will yield a different color in b2 (merged b2:b5).
I need to repeat this for a 6x14 grid (96 swatches) on each sheet. So the next swatch left would be in d2 with the RGB values in c2:c4 and the 7th swatch would be below in b6 with the values in b6:b8.
Any ideas?
fish
I can generate one swatch, let's say in cell b2 with the RGB values (0-255)in cells a2, a3, and a4 with this sheet code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("a2:a4")) Is Nothing Then Exit Sub
[b2].Interior.Color = RGB([A2], [A3], [A4])
End Sub
Changing any of the "a" values in will yield a different color in b2 (merged b2:b5).
I need to repeat this for a 6x14 grid (96 swatches) on each sheet. So the next swatch left would be in d2 with the RGB values in c2:c4 and the 7th swatch would be below in b6 with the values in b6:b8.
Any ideas?
fish