Hello
Sorry for the confusion and thanks for your patience.
"@0001@*** Email address is removed for privacy ***" is just given as an example not exactly same as word create.
The final document is combination of information as given below
Boiler(predefined information-- a .docx file)+ UserForm data+ building blocks
In Code , by using AttachedTemplate a .dotx file will be attached which is having hundreds of building blocks(static content).
Through For Each.... Iteration , finding the nonprinting characters position and replace each with building blocks from .dotx file which is already attached.
All these are automated. when user clicks submit button on Form all these activities are happening and a final document is ready to save. From Form minimum informations are capturing like Name,date,type etc...
Note: The document has some place holders like [Name],[Date] etc.
which will be replaced with data entered by the user (UserForm).
The non printing characters starts with @ is ignored and it simply replace with " "(space).
Alphanumeric non printing characters are replaced with building blocks.
Eg. abc.050.14 is replaced with a paragraph from building blocks in .dotx file.
so finally @*** Email address is removed for privacy *** will be changed to " This is test document"
Regards
psthariharan