我有以下請求正文將多個單元格顏色更改為紅色。然而,只有一個單元格被更新為紅色。有任何想法嗎?
{'requests': [{'updateCells': {'range': {'sheetId': 212797248,
'startRowIndex': 1,
'endRowIndex': 6,
'startColumnIndex': 0,
'endColumnIndex': 10},
'rows': [{'values': [{'userEnteredFormat': {'backgroundColor': {'red': 1}}}]}],
'fields': 'userEnteredFormat.backgroundColor'}}]}
uj5u.com熱心網友回復:
嘗試
{
"requests": [
{
"repeatCell": {
"range": {
'sheetId': 1476957615, // 212797248,
'startRowIndex': 1,
'endRowIndex': 6,
'startColumnIndex': 0,
'endColumnIndex': 10
},
"cell": {
"userEnteredFormat": {
"backgroundColor": {
"red": 1
}
}
},
"fields": "userEnteredFormat(backgroundColor,textFormat,horizontalAlignment)"
}
}
]
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/489505.html
上一篇:谷歌表格中的影像不顯示
