c# - Setting Excel Cell Colours using RGB Values -


i'm trying set excel cells using rgb values rather way need set cells specific colour rather set standard colour.

this how it:

chartrange.interior.color = microsoft.office.interop.excel.xlrgbcolor.rgbred; 

is possible set colour in rgb values in c#?

i working excel sheets have had colours set rgb values in vba.

you can able assign system.drawing.color using fromargb below:

chartrange.interior.color = system.drawing.color.fromargb(255, 0, 0); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -