+ Reply to Thread
Results 1 to 2 of 2

Email EXCEL Sheet from Workbook

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-14-2017
    Location
    london, england
    MS-Off Ver
    office 365
    Posts
    183

    Email EXCEL Sheet from Workbook

    Hello,

    Is it possible to email a specfic sheet from an excel workbook as a PDF without sending all sheets from the workbook.

    I used to think this was possible however Im now only able to share the whole workbook sheets 1-7 as a whole rather than just share 1 sheet.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Email EXCEL Sheet from Workbook

    Here is a generic email to attach a worksheet.

    It will create a copy of the active sheet and then save it in the temp folder, then create the email with the attached sheet.

    Sub EmailOneSheet()
        Dim oApp As Object
        Dim oMail As Object
        Dim wb As Workbook
        fname = Environ("Temp") & "\copySheet.xlsx"
    
        'Turn off screen updating
        Application.ScreenUpdating = False
        'Make a copy of the active sheet and save it to a temporary file
        ActiveSheet.Copy
        Cells.Copy
        Cells.PasteSpecial xlPasteValues
    
        Set wb = ActiveWorkbook
        wb.SaveAs fname
    
        'Create and show the outlook mail item
        Set oMail = CreateObject("Outlook.Application").CreateItem(0)
        With oMail    'Add a recipient
            .To = "Marcus.Small@YourEmail.com.au"
            .Subject = "One Page Activesheet v2"
            .Attachments.Add wb.FullName
            .Display
        End With
    
        wb.Close False
        Application.ScreenUpdating = True
        Set oMail = Nothing
    End Sub

+ 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: 5
    Last Post: 04-29-2020, 11:12 AM
  2. Make a workbook from a sheet and name it the same as the original workbook + (email)
    By fuadramsey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-25-2018, 07:23 PM
  3. Replies: 0
    Last Post: 10-27-2015, 08:59 AM
  4. Replies: 0
    Last Post: 10-27-2015, 08:57 AM
  5. Excel sheet to Email workbook attachment
    By prabhubox@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2014, 04:01 PM
  6. Macro to PDF a sheet in workbook and email (outlook) to an email address in a cell
    By paul_sykes00 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2012, 12:54 AM
  7. Email Each Sheet in Workbook to Unique Recipient (Provided on Each Sheet)
    By rss12321 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-23-2012, 08:09 PM

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