Office . initialize = ( ) => { document . getElementById ( "sideload-msg" ) . style . display = "none" ; document . getElementById ( "app-body" ) . style . display = "flex" ; document . getElementById ( "run" ) . onclick = run ; } ; export async function run ( ) { try { await Excel . run ( async ( context ) => { /**
             * Insert your Excel code here
             */ const range = context . workbook . getSelectedRange ( ) ; range . load ( "address" ) ; range . format . fill . color = "yellow" ; await context . sync ( ) ; console . log ( `The range address was ${ range . address }.` ) ; } ) ; } catch ( error ) { console . error ( error ) ; } }