Macro to add workbook name once attached to subject line in outlook

  • I would like to whether it is possible to extract the name of the workbook attached on Outlook and add this to the end of the text on the macro code


    If so, could someone kindly provide me with the code



    I would like the section of code .Subject = to contain the "Summary Sales figures for + the name of the workbook attached or eg if name of workbook attached is BR.xls then the code must appear as
    .Subject = "Summary Sales figures for Br.xls






    I also posted on https://www.mrexcel.com/forum/…l-macro-subject-line.html

  • Re: Macro to add workbook name once attached to subject line in outlook


    Hello,


    You could modify the Mailfiles() procedure to include your new argument ...:wink:


    Hope this will help

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

  • Re: Macro to add workbook name once attached to subject line in outlook


    You are welcome ... :wink:

    If you feel like saying "Thank You" for the help received, do not hesitate to click the "Smiley" icon, below, in the bottom right corner :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!