Results 1 to 10 of 10

Thread: Parameter from CommandBar

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    VBAX Newbie
    Joined
    Sep 2005
    Posts
    3
    Location
    I am trying to run a procedure from a button on the toolbar passing a parameter to it. Here is a snippet:

    [VBA]
    ' Create a button with an image on the bar and set some
    ' properties.
    Set CBarCtl = CBar.Controls.Add(Type:=msoControlButton)
    With CBarCtl
    .FaceId = 1000
    .Caption = "FormName"
    .ToolTipText = "Open FormName"
    .OnAction = "CommonOpenForm"
    .Parameter = "FormName"
    End With
    [/VBA]

    How does the CommonOpenForm procedure use the parameter?

    Regards
    Last edited by xCav8r; 09-28-2005 at 03:39 PM. Reason: added VBA tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •