You mean... Replacing
withSet oWordDoc = _
oWordApp.Documents.Open(FlName)
Also the code that I gave you in my first post, you can make the changes after you open the tmeplate and then save the word document as .Doc instead of .DotCode:Set oWordDoc = oWordApp.Documents.Add(Template:=FlName)




Reply With Quote