Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-10-2016, 01:44 AM
staicumihai staicumihai is offline Macro to save docx to doc that checks compatibility and converts content controls to static content. Windows 7 32bit Macro to save docx to doc that checks compatibility and converts content controls to static content. Office 2010 32bit
Advanced Beginner
Macro to save docx to doc that checks compatibility and converts content controls to static content.
 
Join Date: Dec 2015
Posts: 33
staicumihai is on a distinguished road
Default Macro to save docx to doc that checks compatibility and converts content controls to static content.

This is the macro I have now :

Option Explicit
Sub BAAR()

Const strDrive As String = "D:\MIHAI\DOSARE\BAAR\"

ActiveDocument.SaveAs2 strDrive & "raport" & ".docx"
ActiveDocument.ExportAsFixedFormat OutputFileName:=strDrive & "raport" & ".pdf", _
ExportFormat:=wdExportFormatPDF, _


OpenAfterExport:=False, _
OptimizeFor:=wdExportOptimizeForPrint, _
Range:=wdExportAllDocument, From:=1, TO:=1, _
Item:=wdExportDocumentContent, _
IncludeDocProps:=True, _
KeepIRM:=True, _
CreateBookmarks:=wdExportCreateHeadingBookmarks, _
DocStructureTags:=True, _
BitmapMissingFonts:=True, _
UseISO19005_1:=False


lbl_Exit:
With Application
.ScreenUpdating = False
Do Until .Documents.Count = 0
.Documents(1).Close SaveChanges:=wdDoNotSaveChanges
Loop
.Quit SaveChanges:=wdDoNotSaveChanges
End With
Exit Sub
End Sub

I need to add code to convert the current docx file to a doc file with same name and also check compatibility and convert content controls to static content.

Any ideas ?
Thanks a lot.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to save docx to doc that checks compatibility and converts content controls to static content. Save as .docx without content controls (just the text that was written in them) vitesse Word VBA 6 08-12-2022 02:01 AM
Macro to unlock content controls Catty Word VBA 7 03-18-2015 02:08 AM
Macro to save docx to doc that checks compatibility and converts content controls to static content. When content controls are deleted, my macro does not work as I would like. harry.ayre Word VBA 2 02-23-2015 10:35 AM
Word 2010 Macro Enabled Template with Content Controls keen1598 Word VBA 7 01-29-2014 03:17 PM
Macro to link 2 content controls bortonj88 Word VBA 2 08-21-2012 06:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft