title: Object does not support this property or method VBA
body: <p>I've got a custom object called TimeZoneInfo</p>
  
  <pre><code>Private pTimeToConvert As Date
  Private pTimeZone As String
  Private pBias As Long
  Private pStandardBias As Long
  Private pDaylightBias As Long
  Private pTimeType As TIME_ZONE
  Private pTotalBias As Long
  Private pStandardDate As SYSTEMTIME2
  Private pDaylightDate As SYSTEMTIME2
  </code></pre>
  
  <p>Which has got 2 properties of type SYSTEMTIME2 - which is another custom class. Everything has setters and getters like below</p>
  
  <pre><code>''''''''''''''''''''''
  ' StandardTime property
  ''''''''''''''''''''''
  Public Property Get StandardDate() As Long
      StandardDate = pStandardDate
  End Property
  Public Property Let StandardDate(value As Long)
      pStandardDate = value
  End Property
  
  ''''''''''''''''''''''
  ' DaylightDate property
  ''''''''''''''''''''''
  Public Property Get DaylightDate() As SYSTEMTIME2
      DaylightDate = pDaylightDate
  End Property
  Public Property Let DaylightDate(value As SYSTEMTIME2)
      pDaylightDate = value
  End Property
  </code></pre>
  
  <p>However, I can't seem to assign it to the TimeZoneInfo property... I know it's definitely set to a SYSTEMTIME2 object - you can see it in the watch I've added</p>
  
  <p><a href="https://i.stack.imgur.com/4mX58.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4mX58.png" alt="enter image description here"></a></p>
  
  <p>Am I missing something really simple here?</p>