S
Steven
Dear,
I am trying to display a "Slide show" menu when the user click a buttom
after powerpoint slide show, code is below
'================
Set objBar = Application.CommandBars("Slide Show")
objBar.ShowPopup
'=================
but powerpoint prompts me "The Method 'ShowPopup' for the
object 'CommandBar' has failed."
at the time, I want to add a menu item in slide show menu, It promps me
"Invalid procedure", code is below, Anyone give me any ideas, Thanks
'========================
Set objBar = CommandBars("Slide Show")
For i = 1 To objBar.Controls.Count
If objBar.Controls.Item(i).Caption = "Do stuff" Then
bExist = True
End If
Next
If bExist = False Then
With objBar
Set oCtrl = .Controls.Add(Type:=msoBarBottom , Before:=3)
With oCtrl
.FaceId = 9
.Caption = "MyButtom"
.OnAction = "Hellofunction"
End With
End With
End If
objBar.ShowPopup
'========================
I am trying to display a "Slide show" menu when the user click a buttom
after powerpoint slide show, code is below
'================
Set objBar = Application.CommandBars("Slide Show")
objBar.ShowPopup
'=================
but powerpoint prompts me "The Method 'ShowPopup' for the
object 'CommandBar' has failed."
at the time, I want to add a menu item in slide show menu, It promps me
"Invalid procedure", code is below, Anyone give me any ideas, Thanks
'========================
Set objBar = CommandBars("Slide Show")
For i = 1 To objBar.Controls.Count
If objBar.Controls.Item(i).Caption = "Do stuff" Then
bExist = True
End If
Next
If bExist = False Then
With objBar
Set oCtrl = .Controls.Add(Type:=msoBarBottom , Before:=3)
With oCtrl
.FaceId = 9
.Caption = "MyButtom"
.OnAction = "Hellofunction"
End With
End With
End If
objBar.ShowPopup
'========================