I am studying at excel with vba macro. I am trying to create a type as MessageID. This type has four variable as string such as Message_ID, Message_Name, Message_Byte and Message_Bit. A Message has just one Message_ID, however; a Message_ID has more than one Message_Name and every name has and just one byte and bit. In the other word, I need a Type has some variables. Because of this, I am trying to make the code above work. But these variables need to keep some variables. But, of course, it does not work.
How can I solve this? Thank you.
Public Type Message
Message_ID As String
Public Type Message_CH
Message_Name As String
Message_Byte As String
Message_Bit As String
End Type
End Type