Scooter172
04-08-2011, 01:04 PM
Sub SendEmail()
'
' SendEmail Macro
'
'
ActiveDocument.ExportAsFixedFormat OutputFileName:= _
"C:\DOCUME~1\stonesa\LOCALS~1\Temp\Twins Game Summary.pdf", ExportFormat _
:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentWithMarkup, IncludeDocProps:=False, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
End SubI have a word doc that I have installed a command button on. I have written a macro that I want that button to command. I am having a brain cramp today I assigned it by macro name to the command button but when I run the code from the command button it does NOT open Outlook or attach it. :p
'
' SendEmail Macro
'
'
ActiveDocument.ExportAsFixedFormat OutputFileName:= _
"C:\DOCUME~1\stonesa\LOCALS~1\Temp\Twins Game Summary.pdf", ExportFormat _
:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _
wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _
Item:=wdExportDocumentWithMarkup, IncludeDocProps:=False, KeepIRM:=True, _
CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _
BitmapMissingFonts:=True, UseISO19005_1:=False
End SubI have a word doc that I have installed a command button on. I have written a macro that I want that button to command. I am having a brain cramp today I assigned it by macro name to the command button but when I run the code from the command button it does NOT open Outlook or attach it. :p