Aug 17 2023 01:13 AM - edited Aug 17 2023 04:10 AM
Hello,
I tried to replace all empty cells with 0, no way to do that with the web version,
simple find and replace work correctly in desktop app but not in web version.
thanks
Aug 17 2023 02:52 AM
@kinanbshara Do you have the Automate tab available in your Excel on-line? If so, you can use this Office script to achieve this:
function main(workbook: ExcelScript.Workbook) {
// Your code here
let emptyAreas = workbook.getSelectedRange().getSpecialCells(ExcelScript.SpecialCellType.blanks);
emptyAreas.getAreas().forEach(r => {
r.setValue(0);
});
}
Aug 17 2023 03:21 AM
Aug 17 2023 05:07 AM