返回或设置 Microsoft Excel 是以 A1 引用样式还是以 R1C1 引用样式显示单元格引用和行、列标题。XlReferenceStyle 类型,可读写。
XlReferenceStyle 可为以下 XlReferenceStyle 常量之一。 |
xlA1 |
xlR1C1 |
expression.ReferenceStyle
expression 必需。该表达式返回“应用于”列表中的对象之一。
本示例显示当前引用样式。
If Application.ReferenceStyle = xlR1C1 Then
MsgBox ("Microsoft Excel is using R1C1 references")
Else
MsgBox ("Microsoft Excel is using A1 references")
End If