function hexToARGB(hex) {
        // Remove leading '#' if it exists and convert to hex integer
        var hex = hex.replace(/^#/, '');
        var hexString = 'FF' + hex;
        return hexString.toUpperCase();
    }
// exceljs requires ARGB strings for colors
exceljs requires ARGB strings for colors
exceljs requires ARGB strings for colors
function hexToARGB(hex) {
        var hex = hex.replace(/^#/, '');
        var hexString = 'FF' + hex;
        return hexString.toUpperCase();
    }
function hexToARGB ( hex ) { var hex = hex . replace ( / ^# / , '' ) ; var hexString = 'FF' + hex ; return hexString . toUpperCase ( ) ; }
exceljs requires ARGB strings for colors
exceljs requires ARGB strings for colors
// Remove leading '#' if it exists and convert to hex integer