我需要在Google电子表格中创建目录,但是我有很多工作表(超过300张),因此单独链接每张工作表会花费很长时间,我如何使用Google Apps脚本为目录创建超链接>
答案 0 :(得分:0)
尝试一下。我们首先迭代电子表格中的所有工作表。这里的技巧是在工作表中使用函数invokeBasic
返回 @ 17 org.sample.MyBenchmark::dynamic_mh_invokeExact (8 bytes) force inline by CompileCommand
@ 4 java.lang.invoke.LambdaForm$MH/0x00000008000f0040::invokeExact_MT (23 bytes) force inline by annotation
@ 10 java.lang.invoke.Invokers::checkExactType (17 bytes) force inline by annotation
@ 1 java.lang.invoke.MethodHandle::type (5 bytes)
@ 12 java.lang.invoke.Invokers::newWrongMethodTypeException (36 bytes) callee is too large
@ 14 java.lang.invoke.Invokers::checkCustomized (23 bytes) force inline by annotation
@ 1 java.lang.invoke.MethodHandleImpl::isCompileConstant (2 bytes)
@ 19 java.lang.invoke.Invokers::maybeCustomize (28 bytes) don't inline by annotation
@ 19 java.lang.invoke.MethodHandle::invokeBasic(L)I (0 bytes) receiver not constant
而不是电子表格ID,因此我们只需将其放在超链接的末尾即可。
只需在getSheetId
函数中将单元格A更改为您需要的单元格即可:
gid