I am currently using this
sheet.format("C3:C3", {"numberFormat": {"type": "CURRENCY"}})
But it doesn't seem to work
From your following script and But it doesn't seem to work. Also on the sheet when I click on the cell I see its adding a ' before the number which is only visible on the formula,
But it doesn't seem to work. Also on the sheet when I click on the cell I see its adding a ' before the number which is only visible on the formula
sheet.update("C3", 6000000) sheet.format("C3:C3", {"numberFormat": {"type": "CURRENCY"}})
In this case, how about using value_input_option as follows?
value_input_option
sheet.update("C3", 6000000, value_input_option="USER_ENTERED") sheet.format("C3:C3", {"numberFormat": {"type": "CURRENCY"}})
or
sheet.update("C3", 6000000, value_input_option="USER_ENTERED") sheet.format("C3", {"numberFormat": {"type": "CURRENCY"}})
From your following script and
But it doesn't seem to work. Also on the sheet when I click on the cell I see its adding a ' before the number which is only visible on the formula,In this case, how about using
value_input_optionas follows?Modified script:
or
Reference: