Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Macro doesn't work
I have a macro which saves my Word doc as a pdf based on words within the
document itself. Sometimes I get an error and the macro stops on the following line: ActiveDocument.ExportAsFixedFormat OutputFileName:=sFileName, _ ExportFormat:=wdExportFormatPDF, OpenAfterExport:=False, OptimizeFor:= _ wdExportOptimizeForPrint, Range:=wdExportAllDocument, From:=1, To:=1, _ Item:=wdExportDocumentContent, IncludeDocProps:=False, KeepIRM:=True, _ CreateBookmarks:=wdExportCreateNoBookmarks, DocStructureTags:=True, _ BitmapMissingFonts:=True, UseISO19005_1:=False sFileName is a string If I close out of all my Office apps (Outlook, Word 2007) then reopen Word and invoke the macro right away, it will work beautifully. I don't know if it has to do with the other apps or not, but if I restart everything fresh, it works again. Is the problem with the macro or something else? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro does not work | Microsoft Word Help | |||
Macro won't work... | New Users | |||
Getting a Macro to Work Right | Microsoft Word Help | |||
Macro doesn't work | Microsoft Word Help | |||
Macro that won't work | Microsoft Word Help |