Programmatically ajouter un bouton de lien hypertexte vers Outlook 2007
-
10-10-2019 - |
Question
J'ajoute une barre d'outils Outlook.
La barre d'outils aura un bouton là-dessus.
Ce bouton, lorsqu'il est pressé, ouvrira un site Web.
J'ai créé le bouton et la barre d'outils sans problème, mais ne peut pas travailler sur la façon d'ajouter le lien hypertexte?
Set oTBar = oView.Add("toolbarname")
oTBar.Position = 1
oTBar.Visible = true
Set oButton = OTBar.Controls.Add
With oButton
.Caption = "Click here!"
.Style = 3
.HyperlinkType = 1
.FaceId = 1707
End with
La solution
Haha!
Vous devez l'ajouter comme l'info-bulle:
.ToolTipText = "http://your_url"
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow