+ Reply to Thread
Results 1 to 6 of 6

Mail from Excel

  1. #1
    Registered User
    Join Date
    08-18-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Mail from Excel

    Good morning,

    I have the macro enclosed as it contains html code which allowed me to email a selection directly to a bunch of people. Recently my company policy changed and we are not allowed to open "web pages" with excel anymore.

    This small changes rendered the Macro useless. The issue lies in the fact that the macro is trying to create a .htm file. Is there any way around it?

    Thanks,

    gv
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Mail from Excel

    .
    This macro selects data from the indicated cells and places that information in to the body of the email. It also attaches a copy
    of the worksheet as a PDF file. That portion of the macro can be deleted if desired.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Mail from Excel

    @ Logit

    FYI another way to get filename.

    Please Login or Register  to view this content.
    So this
    Please Login or Register  to view this content.
    can be reduced to this.
    Please Login or Register  to view this content.
    Last edited by bakerman2; 03-24-2019 at 10:13 PM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Mail from Excel

    .
    Thanks for the assist.

  5. #5
    Registered User
    Join Date
    08-18-2015
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    20

    Re: Mail from Excel

    Thanks, but this doesn't solve my issue as I am trying to paste a table in the body of the email without creating the intermediary file.

    Any suggestions?

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Mail from Excel


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 02-21-2018, 12:02 PM
  2. [SOLVED] Code to send mail copying from Excel to a new outlook mail.
    By paz1987 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-11-2015, 07:54 AM
  3. [SOLVED] screenshot text file and embed in outlook mail through excel with mail info
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 01-11-2015, 08:21 PM
  4. Replies: 0
    Last Post: 01-31-2013, 06:15 AM
  5. How to e-mail selected row and use e-mail address in a cell to send e-mail from excel
    By syedalamgir in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2010, 02:15 AM
  6. Replies: 4
    Last Post: 07-08-2008, 11:14 AM
  7. Replies: 2
    Last Post: 11-25-2005, 06:50 AM

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