![can you keep two word documents open at the same time can you keep two word documents open at the same time](https://sportsclinictampico.com/wp-content/uploads/2021/04/how-search-text-BFC7.png)
But without understanding how the result is achieved it's not possible to give you any exact directions on how This has to do with the indent of Section 3?Ĭan you tell us which version of Word this is?Īnd is the numbering (Section # and a, b, c) done with autonumbering, or how have these indents and numbers been generated? Is the text linked to any styles?Īs far as I can tell, what you need to do is reset the indent the paragraph following the last entry before you insert the next Section heading. When you use the term "template" you seem to mean something to do with how the text is laid out on the page. The template no longer has any influence over the content of the document.Īlso, no document can be linked or associated with more than one template (Document.get_AttachedTemplate). It's contains boilerplate text and some tools relevant to the kind of document you create. In Word, a template is a *.dot, *.dotm or *.dotx file. I suspect that you and I understand different things for the term "template". OMissing, oMissing, oMissing, oMissing, oMissing, oMissing, _ WDoc.SaveAs(combineDocNameObj, oMissing, oMissing, oMissing, oMissing, oMissing, _ (wdStory, oMissing)ĭim combineDocName As String = Path.Combine(finalFileDirectory, "MergedFile.doc")ĭim combineDocNameObj As Object = combineDocName InsertFile(fileName, oRange, oMissing, oMissing, oFalse) it merges but loses the template and starts in the subsection part of first documentĭim oMissing As Object = ĭim WordApp As New .Application()ĭim wDoc As .Document = (oMissing, oMissing, oMissing, oMissing)ĭim dirInfo As New DirectoryInfo(fileDirectory)ĭim files As FileInfo() = dirInfo.GetFiles()
![can you keep two word documents open at the same time can you keep two word documents open at the same time](https://support.content.office.net/en-us/media/3512828e-ba43-4386-85de-aa0d194d8893.png)
CAN YOU KEEP TWO WORD DOCUMENTS OPEN AT THE SAME TIME CODE
Like in the above example the second document begins from the subsection of the first document.īelow is a section of code i found online but is not working for me. Can anyone please let me know how i can preserve the template of second word document when I am able to generate the word documents separately with the correct template but when i merge them together the template of the second word document is messed up. I am doing a word automation which involves creating two word documents with different templates and then merging them together.