Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 583
  • Last Modified:

How can I see (using VBA or API or a registry call) if a Word 2007 user has 'Save all documents as 2003' turned on?

Dear Experts,

I'm saving Word documents from an MS-Access application. I've noticed users cannot open these documents without errors if the filename ends with .docx but the user has told Word to save all documents as 2003 .doc files by default.

So a 2003 document that's saved as .docx is giving me problems.

Is there a way to find out (from Access' VBA) whether the user has 'Save as 2003' turned on? That would enable me to generate correct filenames.

Thank you!
  • 2
1 Solution
The registry entry:
For Word 2010: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Word\Options\DefaultFormat
For Word 2007: HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Word\Options\DefaultFormat

This entry contains "Doc" if default saving is to the .doc format.
By defualt, this value is not set, which means docx.
keimpeAuthor Commented:
Thanks! I'll give that a shot and let you know.
keimpeAuthor Commented:
Works great, thanks!

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now