简体   繁体   English

不使用导入范围功能将数据从一个电子表格导入到另一个电子表格

[英]Importing data from one spreadsheet to another without the import range function

I am trying to build this database and have the database connect to a different spreadsheet. 我正在尝试构建此数据库,并使数据库连接到其他电子表格。 I am trying to import the id's of different client from the database spreadsheet into another spreadsheet. 我正在尝试将不同客户端的ID从数据库电子表格导入另一个电子表格。

But I keep on getting this error message: 但是我继续收到此错误消息:

Bad value (line 6, file "Code")Dismiss

line 6 is: 第6行是:

var targetSpreadsheet = SpreadsheetApp.openById("Control Panel");

function logMemberId () {

var ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Database"); var targetSpreadsheet = SpreadsheetApp.openById("Control Panel"); var rangeOfNumbers = ss.getRange("A2:A100").getValues();
targetSpreadsheet.getRange("B3").setValues(rangeOfNumbers); }

var targetSpreadsheet = SpreadsheetApp.openById("xxxx");

xxxx needs to be the ID that you find in the URL of the document. xxxx必须是您在文档URL中找到的ID。 For example, in this document 例如,在本文档中 在此处输入图片说明 it is "1kvrEKMXLLq4mQ-Uhlc6tOJnh5cReiRIcD94fJKSNlIw" 它是“ 1kvrEKMXLLq4mQ-Uhlc6tOJnh5cReiRIcD94fJKSNlIw”

"Control Panel" is likely the title of your document and not the ID. “控制面板”可能是文档的标题,而不是ID。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将数据从一个电子表格复制到另一种保留格式且不使用公式 - Copy data from one Spreadsheet to another keeping format and without formulas 尝试将数据从一个电子表格导入另一个电子表格时,应用脚本中的服务错误电子表格 - Service Error Spreadsheet in App Script when trying to import data from one spreadsheet to another 如何在不使用电子表格 ID 的情况下使用 Google 脚本从另一个 Google 表格导入数据 - How to import data from another Google Sheet using Google Script without using Spreadsheet ID 使用 Google Apps 脚本将数据范围从一个 Google 电子表格导出到另一个 - Export Range of Data from One Google Spreadsheet to Another using Google Apps Script 在编辑时将数据从一个电子表格复制到另一个电子表格 - Copy data from one spreadsheet to another on edit Google脚本会根据日期将范围从一个电子表格复制到另一个电子表格 - Google scripts copy range from one spreadsheet to another based on date 将过滤后的范围从一个电子表格复制到另一个 - Google 应用脚本 - Copy filtered range from one spreadsheet to another - Google app script 需要在不导入整个组件的情况下从一个文件调用一个函数到另一个文件 - Need to call a function from one file to another file in react without importing whole component 使用Google脚本将数据从一个Google电子表格拉到另一电子表格 - Pull data from one Google spreadsheet to another using Google script 如何在编辑时将数据从一个电子表格复制到另一个电子表格 - How to copy data from one spreadsheet to another on edit
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM