PDA

View Full Version : .open command behaving different in Word 2013 vs. 2007



shallow_fly
05-19-2016, 10:48 AM
I am running an .open command shown below

Documents.Open FileName:=ThisFormWp$, ConfirmConversions:=False, ReadOnly:= _
False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate:= _
"", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="", _
Format:=wdOpenFormatAuto

In WORD 2007 document1 template is already open and stays opens when above command is issued.

In WORD 2013 document1 template is already open but it closes automatically when above command is issued.

I need to have the document1 template stay open when command is fired.

Any help would be greatly appreciated.

gmayor
05-19-2016, 10:05 PM
While we don't know what ThisFormWp$ is, opening a document using your code shouldn't close any already open document and doesn't here in any Word version including Word 2013