I'found the solution, I thought I would post it here just in case anyone
else has a similar problem.
I was using the AddressListCreate command but not specifying what to
create the addresslist from, the solution is to use the
AddressListCreateFromGroup command and pass the name of the group as a
parameter, so, instead of:
Dim strAddressList As String
Dim strReturnValue As String
iRet = vCommander.Execute("addresslistcreate()", strAddressList)
ParamStr = "AddressListGetCount(" + Val(strAddressList) + ";233)"
iRet = vCommander.Execute(ParamStr, strReturnValue)
You must specify the name of the group to create the addresslist from.
First check that the address is in fact a group and not an email address:
single recipients are displayed as Davies, John or John.Davies@
etc.com, so
you can check if the entry is a group by looking for a comma or an @ sign: