djsupersain
02-16-2017, 06:29 PM
Hi Guys, first time post here, thank you for having me along.... complete noob to vba.. anyhow I've got Office365 business and use outlook2016 and have created a PublicSharedCalendar which is working fine (shared out to my account and one other who have all the correct permissions)... I created a form to open and assigned it to a button on the ribbon.
Now i'd like my macro to put my "meeting" on the publicsharefolder calendar instead of my personal calendar. could someone please help me out with my code below please?
Sub MakeItem()
Set newCalFolder = NS.GetSharedDefaultFolder(account_name, account_email_address\TEST_CALENDAR) ---- I added this line to try and get it to use the public shared folder?
Set newItem = Application.CreateItemFromTemplate("C:\Users\user\AppData\Roaming\Microsoft\Templates\test.oft")
newItem.Display
Set newItem = Nothing
End Sub
Thankyou!
Now i'd like my macro to put my "meeting" on the publicsharefolder calendar instead of my personal calendar. could someone please help me out with my code below please?
Sub MakeItem()
Set newCalFolder = NS.GetSharedDefaultFolder(account_name, account_email_address\TEST_CALENDAR) ---- I added this line to try and get it to use the public shared folder?
Set newItem = Application.CreateItemFromTemplate("C:\Users\user\AppData\Roaming\Microsoft\Templates\test.oft")
newItem.Display
Set newItem = Nothing
End Sub
Thankyou!