+ Reply to Thread
Results 1 to 3 of 3

how to run macro in userform button

  1. #1
    khurram saddique
    Guest

    how to run macro in userform button

    i have made a button (cmd1) on form (frm1)
    i want to run a macro by clicking the button what should i do
    regards

  2. #2
    tjtjjtjt
    Guest

    RE: how to run macro in userform button

    Open up the VBE and Double-Click on the button in question. This will take
    you to the button's module with the Button_Click() event already selected.
    Type or paste the code into this sub procedure.

    I assume you know where the to go to access the VBE, but here are quick
    direction just in case. Press Alt+F11 on your keyboard.

    tj

    "khurram saddique" wrote:

    > i have made a button (cmd1) on form (frm1)
    > i want to run a macro by clicking the button what should i do
    > regards


  3. #3
    Bob Phillips
    Guest

    Re: how to run macro in userform button

    Private Sub CommandButton1_Click()
    myMacro
    End Sub

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "khurram saddique" <[email protected]> wrote in
    message news:[email protected]...
    > i have made a button (cmd1) on form (frm1)
    > i want to run a macro by clicking the button what should i do
    > regards




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1