[quote user="Troy Woodyard"]ph.SetValue "3"[/quote]
The underlying data type of Element.Color is Long. You're attempting to set its value as a String.
After you modify an element, you must rewrite it to persist the change. The property handler does that automatically...
ph.SetValue 3