![]() |
|
#1
|
||||
|
||||
![]()
You could simply change:
.Close SaveChanges:=True to: Code:
.SaveAs2 FileName:=strFolder & "\" & Split(strFile, ".")(0) & ".docx", FileFormat:=wdFormatXMLDocument, AddToRecentFiles:=False PPS: I can't see the point of: Code:
If Selection.PageSetup.Orientation = wdOrientPortrait Then Selection.PageSetup.Orientation = wdOrientLandscape Else Selection.PageSetup.Orientation = wdOrientPortrait End If .Orientation = wdOrientLandscape
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Peter Carter | Word VBA | 27 | 12-15-2022 04:10 PM |
Corrupted .docx files | Mayberry | Word | 0 | 08-29-2015 03:17 AM |
![]() |
techwriterrc12 | Word VBA | 4 | 05-09-2013 10:47 AM |
How to open Docx files? | mond_bees | Word | 12 | 08-29-2012 03:32 AM |
Icon for docx files | Jazz43 | Word | 2 | 10-20-2009 08:34 PM |