以用户语言返回或设置对象的名称。String 类型,对 Name 为可读写,对 Style 为只读。
如果样式为内置样式,则本属性以当前系统所使用的地区语言返回样式的名称。
本示例显示活动工作簿上样式一的原名称和本地化以后的名称。
With ActiveWorkbook.Styles(1)
MsgBox "The name of the style is " & .Name
MsgBox "The localized name of the style is " & .NameLocal
End With