Filling Booksmarks in document or template

R

Robert

Hello everyone,

I have created a template which opens with a userform , the values that can
be added here must be placed on several bookmarks in the form this works
perfectly.
Now my problem.

If i make a new document and i use this template the following happens:

If i open it as an document the bookmarks are not filled with the values in
the form.
If i open it as a template it works perfect.

Does anyone have a clue what the problem can be.

Robert
 
D

Doug Robbins - Word MVP

What is the name of the macro that you have in the template to call the
userform. It should be AutoNew()

--
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
 
R

Robert

Thanks Doug,

The problem however was different. I referred to the document as "This
document" and i have to refer to it as "ActiveDocument".

Set Hdoc= Activedocument "then you refer the document in which you are
working

Set Hdoc= Thisdocument "Then you refer to the template you use


That was all.

Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top