hi sue the code snippet for add shortcuts on 2003 with problem i comment line in cod
Sub createOLLink(
Dim MyolApp As Outlook.Applicatio
Set MyolApp = CreateObject("Outlook.Application"
Set myolBar = MyolApp.ActiveExplorer.Panes.Item("OutlookBar"
Set myolGroup = myolBar.Contents.Groups.Item(1).Shortcut
' parametros caminho, TÃtulo do icone, ordem que aparecem dentro do grupo(se nao tiver nhum no gupo comeca com 0 e vai .1..2..
Dim objOB As OutlookBarPan
Dim objOBGroup As OutlookBarGrou
Dim objShortcut As OutlookBarShortcu
Dim colShortcuts As OutlookBarShortcut
Set objApp = CreateObject("Outlook.Application"
Set objOB = objApp.ActiveExplorer.Panes.Item("OutlookBar"
Set objOBGroup = objOB.Contents.Groups.Item(2
For Each Item In objOB.Contents.Group
If Item.Name = "Atalhos do Outlook" The
nome = Item.Nam
caminho = "Outlook:Contatos/Contatos JurÃdicos
End I
If Item.Name = "Outlook Shortcuts" The
nome = Item.Nam
caminho = "outlook:Contacts\Contatos JurÃdicos
End I
Nex
With myolGrou
'''Hi Sue the problems is here for create shortcuts on 2003, this is correct for 2000 and 2002 but no on 200
.Add "file://C:/PRAXIS/dd_praxis/biblioteca.htm", "Serviços",
.Add "file://C:/PRAXIS/dd_praxis/informacoes.htm", "Informações",
'''outlook:Contacts\Contatos JurÃdico
.Add caminho, "Contatos JurÃdicos",
End Wit
Set myolGroup2 = myolBar.Contents.Groups.Item(2
With myolGroup
.Shortcuts.Add "file://C:/PRAXIS/dd_praxis/biblioteca.htm", "Serviços",
'MsgBox "OK Atalho1", vbOKOnl
.Shortcuts.Add "file://C:/PRAXIS/dd_praxis/informacoes.htm", "Informações",
'MsgBox "OK atalho2", vbOKOnl
'''outlook:Contacts\Contatos JurÃdico
.Shortcuts.Add caminho, "Contatos JurÃdicos",
End Wit
Set MyolApp = Nothin
Set myolBar = Nothin
Set myolGroup = Nothin
Set myOlShortcuts = Nothin
Set objShortcut = Nothin
Set colShortcuts = Nothin
Set objOBGroup = Nothin
Set objOB = Nothin
Set objApp = Nothin
End Sub