返回或设置指定区域的公式标志类型。可为 xlNone 指明该区域无标志,或者为以下 XlFormulaLabel 常量之一。XlFormulaLabel 类型,可读写。
XlFormulaLabel 可为以下 XlFormulaLabel 常量之一。 |
xlColumnLabels |
xlMixedLabels |
xlNoLabels |
xlRowLabels |
expression.FormulaLabel
expression 必需。该表达式返回“应用于”列表中的对象之一。
本示例对当前活动工作簿设置 AcceptLabelsInFormulas 属性,然后将单元格 B1:D1 设置为列标志。
ActiveWorkbook.AcceptLabelsInFormulas = True
Worksheets(1).Range("b1:d1").FormulaLabel = xlColumnLabels