View Single Post
 
Old 09-08-2022, 02:41 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,489
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

It's not the opening of the documents that is the problem; it's the file format you're saving them in. They all need to be saved in the docx format - and you can't just change the extension to achieve that. However, since you haven't posted the relevant Save code, we can't give specific help there. That said, the code to ensure the active document is saved in the docx format might look like:
Code:
With ActiveDocument
  ' Save & close the output document
  If UBound(Split(.FullName, ".doc")) = 0 Then
    .SaveAs FileName:=Split(.FullName, ".doc")(0) & ".docx", FileFormat:=wdFormatXMLDocument, AddToRecentFiles:=False
  Else
    .Save
  End If
  .Close SaveChanges:=False
End With
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote