I have the following partial code in a module that is creating a menu item:
Set cbmCommandBarMenuCascade = .Controls.Add(msoControlPopup) With cbmCommandBarMenuCascade .Caption = "Format Conditions" With .Controls.Add(msoControlButton) .Caption = "Alternate Green" .Tag = .Caption .OnAction = "AlternateGreen" End With End With
I tried modifying the OnAction property to pass it an argument: