I'm trying to pass parameters to an OnAction event hanlder in PowerPoint (for a menu item command). I obtained a syntax for this that was supposed to work, but doesn't seem to be.
The syntax is as follows:
EditSubmenuItem.OnAction = "'EditSubmenuAction """ & strParameter & """'"
Unfortunately, it just doesn't work. I simply have a MsgBox inside the sub to see if it's being called, but it isn't. The sub is defined as such:
Sub EditSubmenuAction(ByVal strParameter As String)
MsgBox "Submenu Action", vbOKOnly
End Sub
If I set the OnAction handler normally (without passing in a parameter it works fine).
Does anyone have any suggestions on how to change the syntax to make it work?
Thanks,
Jeff
The syntax is as follows:
EditSubmenuItem.OnAction = "'EditSubmenuAction """ & strParameter & """'"
Unfortunately, it just doesn't work. I simply have a MsgBox inside the sub to see if it's being called, but it isn't. The sub is defined as such:
Sub EditSubmenuAction(ByVal strParameter As String)
MsgBox "Submenu Action", vbOKOnly
End Sub
If I set the OnAction handler normally (without passing in a parameter it works fine).
Does anyone have any suggestions on how to change the syntax to make it work?
Thanks,
Jeff