會傳回或設定 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 支援與意見反應。