Changing caption of commandbarbutton

  • Thread starter Mats-Lennart Hansson
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top