• xlDialogSendMail syntax (Excel ’97)

    Author
    Topic
    #362240

    Pinch and a punch, first of the month.

    What’s the correct syntax for using the xlDialogSendMail command in Excel?

    At the end of a macro I need to mail the workbook to two specific colleagues with a subject line. The subject on really needs to be the file name but to be able to have it as “ABC.xls @ Oct-2001” or “ABC.xls @ 0110″ (as in ‘yymm’) would be an extra bonus.

    I have tried looking through Help and tried the following examples:

    Application.Dialogs(xlDialogSendMail).Show Recipients:=”Marc”, Subject:=”ABC.xls @ 0110″

    and

    Application.Dialogs(xlDialogSendMail).Show
    .Recipients = (“Marc”)
    .Subject = (“ABC.xls @ 0110”)

    Am I even getting close?

    Viewing 0 reply threads
    Author
    Replies
    Viewing 0 reply threads
    Reply To: xlDialogSendMail syntax (Excel ’97)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: