Hi Paresh,
1. You could name the macro autoopen and then it would run when the
template/document is opened BUT your users would then get a macro virus
warning if their security level is set to Medium. If it's set to high, the
macros just won't run. Therefore, it's better for them to save the macro
into the templates folder and use File>New
2. Yes, but I would advocate doing what I have suggested in 1 instead.
3. You can format the bookmarks as Bold, but for more control, instead of
writing the values to bookmarks, use
ActiveDocument.Variables("varname").Value = TextBox1
and in the document insert a docvariable field to which you add the \*
Charformat switch and apply the desired formatting to the D of DOCVARIABLE
{ DOCVARIABLE "varname" \* charformat }
and include code in the userform to update the fields in the document
4 If you insert the bookmarks so that they enclose a space, .InsertBefore
will insert the text inside the bookmark so that you can then use a cross
reference to the text of the bookmark. .InsertAfter inserts the text after
i.e. outside the bookmark. As a result a cross reference to the text of the
bookmark will not return the data that is inserted.
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP