A
Avner Mediouni
I would like to write a function that will color the interior of a cell
according to RGB values.
This is my code:
Function InteriorColor(ByVal R as Integer, ByVal G as Integer, ByVal B as
Integer)
ActiveCell.Interior.Color = RGB(R, G, B)
End Function
This simple code refuse to work when I call it from a worksheet, although it
works well when activates him from another subroutine.
What is wrong ?!!
Thanks for the help
Avner
R&D Physicist
email: (e-mail address removed)
according to RGB values.
This is my code:
Function InteriorColor(ByVal R as Integer, ByVal G as Integer, ByVal B as
Integer)
ActiveCell.Interior.Color = RGB(R, G, B)
End Function
This simple code refuse to work when I call it from a worksheet, although it
works well when activates him from another subroutine.
What is wrong ?!!
Thanks for the help
Avner
R&D Physicist
email: (e-mail address removed)