Cronk
Registered User.
- Local time
- Today, 16:42
- Joined
- Jul 4, 2013
- Messages
- 2,790
Is it possible to pass a type variable to a suboutine in a module?
Code:
Option Compare Database
Option Explicit
Type ItemList
FeeCode As String
UnitValue As Currency
End Type
Public Sub Test()
Dim ItemArray(3) As ItemList
TestPass (ItemArray)
End Sub
Sub TestPass(ItemArray As Variant)
ItemArray(0).FeeCode = "ABC"
ItemArray(0).UnitValue = 10.9
End Sub