Correct Document Name in Compatibility Mode

R

RC - S

Hello

I have a number of Word documents build in Word 2003 (which need to stay
there for now), but when I run a VBA (in Word 2007) and use:
Windows(mDocument).Activate sequence (where mDocument has the document name
like ‘Document2’) it fails because on the task bar the document name has the
words ‘[Compatibility Mode]’ after it.

This is how mDocument is created (via a Public Function):
Application.Documents.Add(ThisDocument.AttachedTemplate.FullName)

How can I find out if the word document I have open is in ‘compatibility
mode’ using VBA please, so i can reference the right document to bring it
back to be the Active Document -which i need to do after creating another
document (in this case an envelope).

Many thanks
 
D

Doug Robbins - Word MVP

Use

Dim mydoc as Document
Set mydoc = Documents.Add(ThisDocument.AttachedTemplate.FullName)
mydoc.Activate

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top