M
Mats-Lennart Hansson
Hi,
I'm changing the caption of a commandbarbutton. But this isn't shown
directly but waits till the button is repainted (for example outlook is
minimized and then maximized).
Is there a way to "force" this?
/Mats-Lennart
My code:
Dim rCBB As CommandBarButton
Dim olApp As Outlook.Application
Set olApp = CreateObject("Outlook.Application")
Set rCBB =
olApp.ActiveExplorer.CommandBars.FindControl(Tag:="ButtonTag")
If rCBB.Caption = "On" Then
rCBB.Caption = "Off"
Else
rCBB.Caption = "On"
End If
I'm changing the caption of a commandbarbutton. But this isn't shown
directly but waits till the button is repainted (for example outlook is
minimized and then maximized).
Is there a way to "force" this?
/Mats-Lennart
My code:
Dim rCBB As CommandBarButton
Dim olApp As Outlook.Application
Set olApp = CreateObject("Outlook.Application")
Set rCBB =
olApp.ActiveExplorer.CommandBars.FindControl(Tag:="ButtonTag")
If rCBB.Caption = "On" Then
rCBB.Caption = "Off"
Else
rCBB.Caption = "On"
End If