Forum Discussion
shashidharsls
12 years agoNew Contributor
Hi Team,
I want to set_color of a object. I have to convert the hex color pattern (Ex: "000080") to object to pass it as a parammeter to PathOfObject.set_SelectedColor(). Please help me to do this conversion in Vb Scripting.
Note: PathOfObject.set_SelectedColor "#000080"
It shows the following error if I run the above line of code.
Object of type "System.String" cannot be converted to type of "System.Windows.media.Color type"
I want to set_color of a object. I have to convert the hex color pattern (Ex: "000080") to object to pass it as a parammeter to PathOfObject.set_SelectedColor(). Please help me to do this conversion in Vb Scripting.
Note: PathOfObject.set_SelectedColor "#000080"
It shows the following error if I run the above line of code.
Object of type "System.String" cannot be converted to type of "System.Windows.media.Color type"