I've got a range that is originally formatted as "General" or @
and I've tried to convert it back to numbers. Technically, it's working, the cell format shows as "numbers" in Excel. But, the only way I can get the numbers to behave correctly (show the sum in the bottom) is by using the "Convert to Number" function in Excel.
How can I access this functionality programmaticaly in Javasciprt/Excel API?
Here is what I'm using currently:
var ws = context.workbook.worksheets.getActiveWorksheet();
var Used_Rng_And_Props = await Ranges.Get_Used_Rng_And_Props(context, ws, false)
//Set Revcd_Wt as Number
var recvdwt_col_index = await Ranges.Get_Header_Col_Index(context, Used_Rng_And_Props, "Recvd_wt")
console.log('recvdwt_col_index:' + recvdwt_col_index)
var rng = await Ranges.Get_Entire_Col_Rng(ws, recvdwt_col_index)
rng.numberFormat = "0.00"
rng.select()