Jump to content
groovyPost Forums

2010 document inspector and send as pdf ?


Guest rob1

Recommended Posts

Hi,

 

I was thinking of creating a macro that would run the document inspector, automatically remove all on each section (or at least certain sections) and then run the 'send as pdf' option.

 

when ive tried to do this i just seem to get in the macro vba code references like below which just doesnt work

 

does anyone have any ideas?

    ActiveDocument.Save
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveWindow.Panes(2).Activate
   ActiveDocument.ExportAsFixedFormat OutputFileName:= _
       "C:\DOCUME~1\Solcase\LOCALS~1\Temp\test.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

Link to comment
Share on other sites

there is a document inspector within office 2010 so you can remove all the meta data etc from a document. it catagories the meta types into 5 sections, where you then get a 'remove all' option next to those applicable.

 

what i would like to do is create a macro to inspect/scan a document and then effectively press remove all to each of the sections if they detect any meta data.

 

there is also a 'send as pdf' option within word 2010 so you can email the current document without having to save it to the pc and then create new email and attach it.

 

for business compliance purposes i would like to be able to clear a document of meta data and then simply email it with just one click of a button if that makes sense, especially as not all memebers of staff a IT savvy

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 5 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...