Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pick color and use in excel

Status
Not open for further replies.

fiep

Technical User
Sep 2, 2003
66
NL
Hi,

I have a color picker for the user to select several colors for several types of data. (Which data is not interesting).
I get the color codes using the standard color picker. But when using the color code in a macro that exports data to excel:
.ActiveCell.Interior.ColorIndex = <code picked>

I get a runtime error. The color codes from the color picker are totally different from the codes in excel. Is there a way to convert this?

Thanks,

W.
 
And what about this ?
.ActiveCell.Interior.Color = <code picked>

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Life can be so easy ;-)

Thanks very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top