Can someone please advise if there is a way to pass a variable with the .OnAction line? The following does not seem to work.
[VBA]
With .Controls.Add(Type:=msoControlButton)
.Caption = "Auction View"
.FaceId = 384
.OnAction = "createView(""auctionView"")"
.Width = myIconWidth
[/VBA]