+ Reply to Thread
Results 1 to 2 of 2

Emailing attachments via Excel

  1. #1
    Registered User
    Join Date
    04-18-2008
    Posts
    8

    Emailing attachments via Excel

    Hi there all,

    I've recently started a new job and one of my duties is monitoring and reporting Office electrical usage/demand data. I send every office a weekly email with attachments.. normally 3 attachments showing their overall electrical consumption data and drilling down in to different depts etc.

    I've found this task to be really repetitive since there are over 20 office locations.. so every week I've to create over 20 emails... add 3 attachments to each and change the office names in the text etc

    The only difference between the emails is the office name and the week number. Therefore the only thing that will change every week is the week number. This is the same with the file names and folder names and email subject etc.

    If you see my attachment I have set up 3 worksheets, each with an office.
    Each office's email recipients will differ.

    Everything on each sheet will stay the same every week apart from the week number. So when I update the week number, how would I go about updating the red txt in my attachment... e.g the week number in the subject, and file names and paths etc

    How about setting this up so when I hit the Mail button, excel will create an email, fetch the attachments via the file path (can excel do this?) and show the email (MS Outlook or Lotus Notes) ready for me to hit the send button (this will let me review the email and make sure I haven't made any boo boo's lol).

    Any pointers would be a great help.

    Thanks loads
    Attached Files Attached Files

  2. #2
    Forum Contributor pr4t3ek's Avatar
    Join Date
    10-13-2008
    Location
    Melbourne, Australia
    MS-Off Ver
    2003 & 2007, 2010
    Posts
    483

    Re: Emailing attachments via Excel

    Hi!

    This will email the activeworksheet

    Please Login or Register  to view this content.
    you can hardcode your path in the above

    otherwise you can use VBScript (not Excel)

    Please Login or Register  to view this content.
    and do this via creating a .vbs file and pasting/editing the above code in there

    Hope this gives you a good start..!! in fact it should!

    Cheers
    --
    Regards
    PD

    ----- Don't Forget -----

    1. Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks

    2. Thank those who have helped you by Clicking the scales above each post.

    3. Please mark your post [SOLVED] if it has been answered satisfactorily.

+ 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