Consulting

Results 1 to 14 of 14

Thread: Solved: Sending an email without attatching the document in VBA for Word

  1. #1
    Knowledge Base Approver
    Space Cadet
    VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location

    Solved: Sending an email without attatching the document in VBA for Word

    My boss has asked me if its possible to send an email using a word macro but without sending the doucment as well. I searched the forum and saw Dreamboat's KB entry for sending emails from multiple clients but am unsure how to use this to just send an email.

    Essentially what i'd like to be able to do is send an email with a link to the document so that we are only working on one copy of the document (reviewing per say) - the building of the link i've got covered but i'm still pretty much clueless a to how to send the email. Any help would be much appreciated.

    Thanks in advance

    Andrew;?

  2. #2
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    What email application do you use?

  3. #3
    Knowledge Base Approver
    Space Cadet VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location
    sorry - Outlook 2003 - the whole firm uses Office 2003 (STD edition)

  4. #4
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Take a look at this KB Entry.

    Change the Subject, To, Body, Importance, and Attachments arguments as needed. If you don't want to attach anything just delete the .Attachments line.

  5. #5
    Knowledge Base Approver
    Space Cadet VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location
    Excellent - thats looks like just what I need. i'll test straight away

  6. #6
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    Let me know if you have any problems or need any of the code clarified.

  7. #7
    Knowledge Base Approver
    Space Cadet VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location
    only one problem - it says "this macro is attempting to send an email - it may be a virus" and gives the user the option of cancelling the email. I'm sure its the macro security levels but I need to keep this kind of message from happening and I dont know how. Is there a way I can create a didgital certificate for my macros to distribute acros the company network so that I can leave the macro security levels at high for outside security purposes?

  8. #8
    Site Admin
    Jedi Master
    VBAX Guru Jacob Hilderbrand's Avatar
    Joined
    Jun 2004
    Location
    Roseville, CA
    Posts
    3,712
    Location
    AFAIK you cannot disable that message (For Security Purposes). But you can do this instead.

    Replace .Send

    With .Display

    Then the email message should open up fine, but the user will have to send it. This will also give them the option to change the message before sending it.

  9. #9
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    AFAIK, there is only one way to get rid of that security prompt. And now I have to remember what it is. It's a 3rd-party application, but I do believe it's free. Let me get that info for you, sandam.
    ~Anne Troy

  10. #10
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Phew! I found it quickly: http://www.dimastr.com/redemption/
    ~Anne Troy

  11. #11
    Knowledge Base Approver
    Space Cadet VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location
    cool, having a look at it now. will have to get the bosses approval and then figure on distrubting it around - or and i not sure, if I add it as a reference to a template's macros will it retain the reference regardless of where on the network its accessed?

  12. #12
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    I don't think so, sandam. For as long as I can remember, that was the only application that ever bypassed the security, and I've seen it referenced on many technical support sites. I probably first saw it on www.slipstick.com, which was created by a MS Outlook MVP. It's as though "this is it" for your issue. And I highly doubt that it'd work on a network. Security is just too touchy of an issue for a free or inexpensive application to work like that...that's what I'm thinking.
    ~Anne Troy

  13. #13
    Knowledge Base Approver
    Space Cadet VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location
    as they say - nothing ventured nothing gained, if i get the ok to use it, i'll post back here and let you know how it worked or didn't as the case may be. Thanks again to you and DRJ for your help on this.

  14. #14
    Knowledge Base Approver
    Space Cadet VBAX Tutor sandam's Avatar
    Joined
    Jan 2005
    Location
    London
    Posts
    292
    Location

    no such animal

    The powers that be have decided not t full yautomte the email function just set due to possible user errors so I wont get a chance to implement that little piece of software just yet. I might just test it at home and see if it works but for now its almost the weekend and i'm gonna party like its nighty night time

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •