Dim ctxobject As ObjectContext
Dim objAccount As Account.Pay

Set ctxobject = GetObjectContext()
Set objAccount = ctxobject.CreateInstance("Account.Pay")

I'm trying to run the code above cause I want to be able to use the SetComplete and SetAbort. But it always give me the runtime error 91 : Object variable or With block variable not set.
I noticed that the - Set ctxobject = GetObjectContext()
doesn't seem to work cause it give my object variable Nothing. What's wrong with it?