VBA reference - "copy attachments"

Hi

Any ideas on how to attach a reference with nested references with option "Copy attachments" using VBA ?

We have an old Microstation basic macro with following:

MbeSetAppVariable "REF", "msDialogState.refAttachInfoP->refSettings.nestMode", 1&

But cannot find a solution in VBA.

Thanks in advance

Jan