+ Reply to Thread
Results 1 to 3 of 3

running macros from IF

  1. #1
    CJ
    Guest

    running macros from IF

    Please help, What is the command to run a macro from an IF condition. The
    macro is called MacroB so: IF(K39=60,run macro,stop) from the programming
    format of: if cell K39 =60 the run the macro else stop. Thank you

  2. #2
    Niek Otten
    Guest

    Re: running macros from IF

    You can't do it that way; the True and False branches of the IF have to evaluate to a value via formulas.
    Look at event procedures instead. Here's a link:

    http://www.cpearson.com/excel/events.htm

    --
    Kind regards,

    Niek Otten


    "CJ" <[email protected]> wrote in message news:[email protected]...
    | Please help, What is the command to run a macro from an IF condition. The
    | macro is called MacroB so: IF(K39=60,run macro,stop) from the programming
    | format of: if cell K39 =60 the run the macro else stop. Thank you



  3. #3
    CJ
    Guest

    Re: running macros from IF

    Thank you

    "Niek Otten" wrote:

    > You can't do it that way; the True and False branches of the IF have to evaluate to a value via formulas.
    > Look at event procedures instead. Here's a link:
    >
    > http://www.cpearson.com/excel/events.htm
    >
    > --
    > Kind regards,
    >
    > Niek Otten
    >
    >
    > "CJ" <[email protected]> wrote in message news:[email protected]...
    > | Please help, What is the command to run a macro from an IF condition. The
    > | macro is called MacroB so: IF(K39=60,run macro,stop) from the programming
    > | format of: if cell K39 =60 the run the macro else stop. Thank you
    >
    >
    >


+ 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