0
Set excel cell color with javascript created with cfspreadsheet
Explorer
,
/t5/coldfusion-discussions/set-excel-cell-color-with-javascript-created-with-cfspreadsheet/td-p/13530251
Jan 26, 2023
Jan 26, 2023
Copy link to clipboard
Copied
I've create a excel file with CFSpreadSheet and now I want to change the color of a cell to a hexcolor that is not available with CFSpreadSheet. Can it be done with javascript?
<cfset xl = spreadsheetNew("Hazard Details",true)>
<cfset SpreadsheetAddRow(xl,"Test")>
<cfset SpreadsheetFormatCell(xl,{color="red",bold="true"},#xl.rowcount#,1)>
Will set it to red. But I want to use a color that is not available with cfspreadsheet like hexcolor #355f91
something like:
<cfset SpreadsheetFormatCell(xl,{color="#355f91",bold="true"},#xl.rowcount#,1)>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/coldfusion-discussions/set-excel-cell-color-with-javascript-created-with-cfspreadsheet/m-p/13590596#M194399
Feb 19, 2023
Feb 19, 2023
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

