Change a cell's color based on another cell's color

I created a macro, "GetFontColor":

Function GetFontColor(Rng As Range) As Long
    GetFontColor = Rng.Font.Color
End Function

Now I need to format the font color for a range of cells using the results of the function. So for example, if I format a cell's text to red, the formula returns "255". So in another cell, I would like to also change the color to the referenced cell's color (or any other color for that matter). I think I can do this with conditional formatting using a formula but it doesn't seem to work: Format using a formula... type "GetFontColor($A$1)=255" then format the font color red. Nothing happens.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Remove quotes:
Conditional formattingSample-CF.xls

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
orerockonAuthor Commented:
OK great, that works fine. I should have explained myself better, the function GetFontColor is stored in the personal workbook (which is open) and I'm trying to apply it to another open workbook, where it didn't work. I didn't think to try the function in that workbook, and it returned #NAME?. I have other macros stored in the personal workbook that work in all open books. I copied the module to the workbook I am using, saved it as .xlsm, and it worked. I saved the file as .xlsx, opened it again, didn't work. Restarted Excel, it works. I'm guessing I have to close and open Excel each time I make changes in personal.xlsb. Thanks again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.