开发者

Programmatically add a hyperlink button to outlook 2007

开发者 https://www.devze.com 2023-01-25 12:59 出处:网络
I am adding a toolbar to Outlook. The toolbar will h开发者_如何学JAVAave one button on it. This button, when pressed, will open up a web site.

I am adding a toolbar to Outlook.

The toolbar will h开发者_如何学JAVAave one button on it.

This button, when pressed, will open up a web site.

I've created the button & toolbar no problem, but cannot work out how to add the hyperlink?

  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


Haha!

You need to add it as the tooltip:

  .ToolTipText  = "http://your_url"
0

精彩评论

暂无评论...
验证码 换一张
取 消