chunkywizard
Member
- Outlook version
- Email Account
- IMAP
Hi there,
I hope you can help me. I am a newbie to scripts in Outlook but have been doing a bit of reading. Bascially I have installed CodeTwo Sync for iCloud and now I have 2 active iCloud calendars everytime I boot. I wish only for my main calendar (My Calendars: Calendar) to be active on boot. Reading the forum it looks as though I can change this behaviour by using a script. I thought I should copy this: https://forums.slipstick.com/threads/90118-outlook-calendar-display/ but I can't get it to work. Can you help?
The steps I take are:
Alt F11
double click 'ThisOutlookSession'
pasted text below in
save
press play
(a box titled Macro comes up)
named macro and clicked create
press play
(a box titled macro comes up)
click run
nothing happens
I am running Outlook 2007 SP3 and have Macro security set to Warnings for All Macros
Just to confirm, the text I am pasting is:
Dim WithEvents objPane As NavigationPane
Private Sub Application_Startup()
Set objPane = Application.ActiveExplorer.NavigationPane
End Sub
Private Sub objPane_ModuleSwitch(ByVal CurrentModule As NavigationModule)
Dim objModule As ContactsModule
Dim objGroup As NavigationGroup
Dim objNavFolder As NavigationFolder
If CurrentModule.NavigationModuleType = olModuleContacts Then
Set objModule = objPane.Modules.GetNavigationModule(olModuleContacts)
' Use the Group name the folder is in
Set objGroup = objModule.NavigationGroups("My Calendars")
' Replace 4 with the index number of the folder you want to use
Set objNavFolder = objGroup.NavigationFolders.Item(1)
objNavFolder.IsSelected = True
End If
Set objNavFolder = Nothing
Set objGroup = Nothing
Set objModule = Nothing
End Sub
Any ideas what I am doing wrong (or what is wrong with the script)? Any help, gratefully appreciated,
Paul
I hope you can help me. I am a newbie to scripts in Outlook but have been doing a bit of reading. Bascially I have installed CodeTwo Sync for iCloud and now I have 2 active iCloud calendars everytime I boot. I wish only for my main calendar (My Calendars: Calendar) to be active on boot. Reading the forum it looks as though I can change this behaviour by using a script. I thought I should copy this: https://forums.slipstick.com/threads/90118-outlook-calendar-display/ but I can't get it to work. Can you help?
The steps I take are:
Alt F11
double click 'ThisOutlookSession'
pasted text below in
save
press play
(a box titled Macro comes up)
named macro and clicked create
press play
(a box titled macro comes up)
click run
nothing happens
I am running Outlook 2007 SP3 and have Macro security set to Warnings for All Macros
Just to confirm, the text I am pasting is:
Dim WithEvents objPane As NavigationPane
Private Sub Application_Startup()
Set objPane = Application.ActiveExplorer.NavigationPane
End Sub
Private Sub objPane_ModuleSwitch(ByVal CurrentModule As NavigationModule)
Dim objModule As ContactsModule
Dim objGroup As NavigationGroup
Dim objNavFolder As NavigationFolder
If CurrentModule.NavigationModuleType = olModuleContacts Then
Set objModule = objPane.Modules.GetNavigationModule(olModuleContacts)
' Use the Group name the folder is in
Set objGroup = objModule.NavigationGroups("My Calendars")
' Replace 4 with the index number of the folder you want to use
Set objNavFolder = objGroup.NavigationFolders.Item(1)
objNavFolder.IsSelected = True
End If
Set objNavFolder = Nothing
Set objGroup = Nothing
Set objModule = Nothing
End Sub
Any ideas what I am doing wrong (or what is wrong with the script)? Any help, gratefully appreciated,
Paul