I am attempting to convert vba to vb.net. What is the syntax to convert the following code?
Current vba:
My attemp vb.net :
when i run this in its place I am getting null reference exception. If you could explain what I need to that would be most helpful
Thank You
Current vba:
Code:
oCalendar = Application.Session.GetDefaultFolder(olFolderCalendar)
My attemp vb.net :
Code:
oCalendar = objNS.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderCalendar)
Thank You