More tweaks to the styling code, still getting errors in Excel 2010