3

我正在将一些用 Excel 4 XLM 宏编写的函数翻译成 VBA。我目前正在翻译的宏中调用的函数之一是FORMULA.FILL. 我似乎找不到任何有关此功能作用的文档。谁能提供有关此功能、其参数、功能、输出等的详细信息?

更新:

更多上下文...

=ALERT("Are you sure you want to Extract and Export Baseline Data?",1)
=IF(NOT(F3),RETURN())
=GET.DOCUMENT(88)
=ECHO(FALSE)
=WORKBOOK.ACTIVATE("Baseline export")
=unprotectsheet()
=RemoveFormulas()
=WORKBOOK.ACTIVATE("Baseline export")
=WORKBOOK.UNHIDE("Baseline Export")
=FORMULA.FILL("",'baseline export'!A2:C1000)
=DEFINE.NAME("Database",BaselineDatabase)
=DEFINE.NAME("Criteria",BaselineCriteria)
=DEFINE.NAME("Extract",BaselineExtract)
=EXTRACT()
=COUNTA('baseline export'!D:D)-1
=CALCULATION(3)
=ERROR(FALSE)
=FORMULA.REPLACE(not_applicable,not_applicable_value)
=ERROR(TRUE)
=FORMULA.FILL("Snapshot",OFFSET('baseline export'!A1,1,0,F17,1))
=FORMULA.FILL(Domain,OFFSET('baseline export'!B1,1,0,F17,1))
=FORMULA.FILL(Project,OFFSET('baseline export'!C1,1,0,F17,1))
=MATCH(Current_Reporting_Date,'baseline export'!D:D,0)
=IF(NOT(ISNA(F25)),FORMULA("Month",OFFSET('baseline export'!A1,Macro1!F25-1,0,1,1)))
=RestoreFormulas()
=WORKBOOK.ACTIVATE("baseline export")

=savebaselineexportworksheet(BaselineExportFilename)
=WORKBOOK.ACTIVATE(F5)
=FORMULA.FILL("",'baseline export'!A2:KX1000)
=WORKBOOK.HIDE("baseline export")
=WORKBOOK.ACTIVATE("export baseline")
=ECHO(TRUE)
=CALCULATION(1)

=ALERT("Baseline exported to Excel file: "&BaselineExportFilename,3)
=ALERT("… be sure to update your baseline-export-list .txt file and use your DataDrill Collector to upload the baseline export Excel file to the Database.",3)

=RETURN()
4

1 回答 1

3

=FORMULA.FILL("",'baseline export'!A2:C1000)

上面的函数将“”(无)A2:C1000放在 sheet 上的单元格中baseline export

基本上,它正在清除这些细胞。

FORMULA.FILL是将数据或公式放入单元格时使用的函数。

于 2013-11-13T19:42:26.517 回答