0

Excel 2003 では、コレクションにアクセスして、Application.CommandBarsVBA を使用してカスタム ツールバーを作成できます。Outlook 2003 に同等のものはありますか?

顧客ツールバーのボタンのラベルを変更しようとしています。将来的には、ツールバーをゼロから作成したいと考えています。

乾杯、デイブ

-- Fedang の Trindaz #Outlook-vbas

4

1 に答える 1

-1

これを自分で解決することになりました。興味がある場合は、次のコードをご覧ください。

Dim expExplorer As Outlook.Explorer
Dim cmbCommandBar As CommandBar
Dim ctlBarControl As CommandBarControl
For Each expExplorer In Outlook.Explorers
    For Each cmbCommandBar In expExplorer.CommandBars
        If cmbCommandBar.Name = "name-of-toolbar" Then
            For Each ctlBarControl In cmbCommandBar.Controls
                If ctlBarControl.Caption = "caption-i-want-to-change" Then
                    ctlBarControl.Caption = "new-caption-text"
                End If
            Next ctlBarControl
        End If
    Next cmbCommandBar
Next expExplorer
于 2010-09-26T05:01:40.770 に答える