Hi,
I have a business requirement to expand a folder within a shared mailbox. So the mailbox structure would be similar to the below where I am trying to expand the second account/mailbox so that it shows as below:

In order to do this programmatically, I have tried to add an action to extend the MS Outlook VBO with the following code:

The code has no errors (using the 'Check Code' button), and compiles fine. However whenever I step over it, I get the following error:

Whenever I run the above VB code as a macro in Outlook, it works fine and expands the second folder without any issues. However running it in BP gives the above error message. I think the issue seems to lie in line 6, but can't be sure.
Having spent quite a bit of time on google, would anyone be able to provide any assistance on why this is not working please?
Many thanks for your help,
Kind regards,
Ben
------------------------------
Benjamin Anderson,
Senior Consultant,
UK
------------------------------
Benjamin Anderson,
Senior Consultant,
UK