Unable to remove Navigation Group

E

ed.sheldon

Sub AddThenRemoveNavGroup()
'Windows 7 / Outlook 2007
Dim oNavGroups As NavigationGroups
Dim oNavGroup As NavigationGroup
Set oNavGroups =
Application.ActiveExplorer.NavigationPane.Modules.GetNavigationModule(olModuleCalendar).NavigationGroups
Set oNavGroup = oNavGroups.Create("myNewGroup")
'Now remove the same group
oNavGroups.Delete (oNavGroup) 'Error: Object required
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top