共用方式為


使用者定義資料型別

任何你用 Type 陳述式定義的資料型態

使用者自訂資料型態可以包含一個或多個資料型別的元素、 陣列,或先前定義的使用者定義型別。 例如:

Type MyType 
 MyName As String ' String variable stores a name. 
 MyBirthDate As Date ' Date variable stores a birthdate. 
 MySex As Integer ' Integer variable stores sex (0 for 
End Type ' female, 1 for male). 

另請參閱

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應