Dear MB_D,
Good day! Thank you for posting to Microsoft Community. We are happy to help you
Based on your description, we understand that you want to write scripts to create specific folders in SharePoint Automation.
In my experience, I don't think VBA is the right tool for your needs, I think your needs may be possible through PowerAutomate or PnP Powershell. Since our forums focus on SharePoint functionality and are very limited in the creation of automated scripts, we encourage you to post in the following forums. I am sure that our experts from that team can address your query effectively and accurately.
Ref: PnP PowerShell Overview | Microsoft Learn & Forums - Power Platform Community (microsoft.com)
Thank you for your cooperation and understanding. Please do not hesitate to post your queries in Microsoft Community and we will always do our best to assist you!
Sincerely,
Tin | Microsoft Community Moderator