当源列表更改时,数据验证下拉列表选定项自动更新

时间:2015-09-12 15:19:47

标签: google-apps-script google-sheets

我有两张纸。我在其中定义了一个项目类别。像

Category
<big>
<small>
<cute>

在其他表格中,我有项目列表,我通过数据验证下拉列表分配准备好的类别。

item1  <big>
item2  <small>
item3  <cute>

我使用Data-&gt;验证和选择的数据范围和列表范围创建了数据验证。

但是当我改为时,更改不会填充到其他工作表中。它只显示警告,该单元格包含无效数据。

当我更改源数据时,可以在下拉菜单中更新(自动或通过某些脚本)所选项目吗?

1 个答案:

答案 0 :(得分:2)

this is more a Google Spreadsheet related question but when you change value of a category exemple to the change will not be populated to previously selected values, it is normal. It is the way spreadsheet and excel works.

The way to automate change is to build a script which will replace values. My favorite solution is more to use replace function (ctrl+H). It is built in spreadsheet :-)

Other solution there is an addon : link

Stéphane