Correct declaration of DWord in VBA
问题 I'm using an API function which returns a DWORD Because I want intellisense on the LoWord and HiWord , rather than using a Long : Declare Sub myAPI(ByRef outVariable As Long) ...as suggested in this list of WinAPI -> VBA datatype conversions, I'm using a type: Public Type DWORD 'same size as Long, but intellisense on members is nice '@Ignore IntegerDataType LoWord As Integer '@Ignore IntegerDataType HiWord As Integer End Type Declare Sub myAPI(ByRef outVariable As DWORD) However RubberDuck's