IEdmTaskInstance and VBA?

Anyone know how to initiate IEdmTaskInstance in VBA?

The only examples I have found follows the PDM programmer's reference guide which is written in VB and use a button-UI before starting the task. (Se below)

Private Sub OnTaskRun(ByRef poCmd As EdmCmd, ByRef ppoData As System.Array)

  'Get the property interface used to access the framework
  Dim inst As IEdmTaskInstance
  inst = poCmd.mpoExtra

  ...

SolidworksApi macros