D
Duncan McCreadie
I am trying to turn on the find bar when a particular folder is selected but
it seems that the State property is not right.
colCB = applicationObject.ActiveExplorer.CommandBars
objCBB = colCB.FindControl(ID:=5592) ' Find
If Not objCBB Is Nothing Then
If objCBB.State = MsoButtonState.msoButtonUp Then objCBB.Execute()
End If
I have tried repeating the state test line, thinking that the state might
not be "remembered" but would be set by the first command. However, it
seems like it always has a state of msoButtonDown after execute whatever the
state beforehand.
Any ideas on what I can do differently?
Duncan
it seems that the State property is not right.
colCB = applicationObject.ActiveExplorer.CommandBars
objCBB = colCB.FindControl(ID:=5592) ' Find
If Not objCBB Is Nothing Then
If objCBB.State = MsoButtonState.msoButtonUp Then objCBB.Execute()
End If
I have tried repeating the state test line, thinking that the state might
not be "remembered" but would be set by the first command. However, it
seems like it always has a state of msoButtonDown after execute whatever the
state beforehand.
Any ideas on what I can do differently?
Duncan