:banghead:
This is one area I've never been able to succeed in. I would like to declare a User Type in order to return to values from a function.
The declaration is made in a module as follows
Public Type Document
DocumentID As Long
IncidentID As Long
End Type
The variable Document itself will accept a value
Document=1
But when I try and read the value of an element in the Immediate Window,
? Document().DocumentID
I get Subscript Out of Range
This is one area I've never been able to succeed in. I would like to declare a User Type in order to return to values from a function.
The declaration is made in a module as follows
Public Type Document
DocumentID As Long
IncidentID As Long
End Type
The variable Document itself will accept a value
Document=1
But when I try and read the value of an element in the Immediate Window,
? Document().DocumentID
I get Subscript Out of Range