none
Outlook 2007 Script Codes RRS feed

  • Question

  • I was talking to microsoft suport and they told me to post this as someone could answer right away.

    I found these two different ways to have a commandbutton in a contact form run a code from the script that runs a macro from a module in the VBA area. And the words macroname is the name of the macro and the module7 is the module number the macro is in

    sub CommandButton6_click
    call module7.macroname()
    end sub

    and there is error "object module7 required"

    and then I did:

    sub CommandButton6_click
    macroname
    end sub

    and the errror is "type mismatch macroname"

    Any way to fix this so I add a command button to a contact form script and it runs the the macro the script refers to as I need this very heavily!!

    • Moved by Bill_Stewart Wednesday, August 7, 2013 11:31 AM Moving to more appropriate forum
    Wednesday, August 7, 2013 12:21 AM

Answers

All replies