返回或设置一个 Long 类型,表示 ColumnFormat 对象关联的属性的显示格式。 读/写。
语法
expression。 FieldFormat
表达 一个代表 ColumnFormat 对象的变量。
备注
此属性的值是枚举中的常量,其中枚举依赖于 ColumnFormat 对象的 FieldType 属性的值:
| FieldType 值 | FieldFormat 枚举 |
|---|---|
| olFormatDateTime | OlFormatDateTime |
| olDuration | OlFormatDuration |
| olInteger | OlFormatInteger |
| olKeywords | OlFormatKeywords |
| olNumber | OlFormatNumber |
| olPercent | OlFormatPercent |
| olText | OlFormatText |
| olYesNo | OlFormatYesNo |
| olEnumeration | OlFormatEnumeration |
| olSmartFrom | OlFormatSmartFrom |
对于上表中未列出的字段类型,此属性的值将被忽略。
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。