Most valuable professional
  • Hot Topics

Excel Email VBA Code/Break Link

I currently am using this VBA code below to email a single sheet from my workbook, however when the end user opens the attachment it keeps asking to edit links. What can I add to this code so that it breaks the link upon emailing so they don't get the prompt? Sub Mail_ActiveSheet() ' Works in Excel 2000, Excel 2002, Excel 2003, Excel 2007, Excel 2010, Outlook 2000, Outlook 2002, Outlook 2003, Outlook 2007, Outlook 2010 Dim FileExtStr As String Dim FileFormatNum As Long Dim Sourcewb As Workbook Dim Destwb As Workbook Dim TempFilePath As String Dim TempFileName As String Dim OutApp As Object Dim OutMail As Object With Application .ScreenUpdating = False .EnableEvents = False End With Set Sourcewb = ActiveWorkbook ' Next, copy the sheet to a new workbook. ' You can also use the following line, instead of using the ActiveSheet object, ' if you know the name of the sheet you want to mail : ' Sheets("Sheet5").Copy ActiveSheet.Copy Set Destwb = ActiveWorkbook

This question generated 12 answers. To proceed to the answers, click here.

This thread is current as of May 25, 2015.

For more resources for Microsoft Excel:

This article includes the following tags:

  • Excel
  • Microsoft Excel