Templates, saving, directory

T

Tammy

Okay, couple of "simple"?? questions here!

I have created a template - every time I create a
document using this template it gives me a message about
the "normal" template being in use, or changes having
been made - I'm guessing this has something to do with
the way in which my seperate, other, template was
created - how do I correct this?

Also, anytime a user uses this template, I would like the
document to be saved in a specific document - is that
something I can "build" into the template?? Or, how
could I code that in using VB.

And the last question, I would like to create a default
for the file name to reference a bookmark that I have
created. I had some code (based in Access) which was
doing this, but that created more problems. This again
will always be the case on any document created with this
same template - any way to build all of this in the
template - or a macro which is executed upon use of this
template??

I haven't used VBA within word before and am actually
very new to VB anyway - so please forgive my ignorance!
In case it makes a difference - the document is being
generated by automation from Access.

THANKS!
 
M

martinique

Tammy said:
Okay, couple of "simple"?? questions here!

I have created a template - every time I create a
document using this template it gives me a message about
the "normal" template being in use, or changes having
been made - I'm guessing this has something to do with
the way in which my seperate, other, template was
created - how do I correct this?

Find the code that's modifiying normal.dot and fix it. 'Modifying' is
interpreted very loosely by VBA -- just referencing a document's properties
is enough to make Word think the document has changed. For debugging
purposes, watch the value of the .Saved property: when this changes to FALSE
you've 'modified' the template.


Also, anytime a user uses this template, I would like the
document to be saved in a specific document - is that
something I can "build" into the template?? Or, how
could I code that in using VB.

Assume you mean in a specific document. You can build this into the template
by writing your own FileSave function. But this introduces problems of its
own (have a look at Hans Troosts' thread).
And the last question, I would like to create a default
for the file name to reference a bookmark that I have
created. I had some code (based in Access) which was
doing this, but that created more problems. This again
will always be the case on any document created with this
same template - any way to build all of this in the
template - or a macro which is executed upon use of this
template??

Don't understand the question.

I haven't used VBA within word before and am actually
very new to VB anyway - so please forgive my ignorance!
In case it makes a difference - the document is being
generated by automation from Access.

Forgiven.
 
T

Tammy

Thanks for the information! I will check those things...

As for the save - when you go to save a word doc (or exit
the doc), a window pops up prompting for the filename. In
the box for the filename, usually you will find the first
line of that docuemnt. I would like the name found at
the bookmark labeled "name" to appear instead. The
document has a "title" page, so it contains first the
company name & logo and then the title of the document
itself. Hope this makes more sense!

Thanks again!
 
T

Tammy

Sorry, when I said I would like the doc to be saved in a
specific "document", I meant directory! Sorry, it was
late! I am going to guess I would still do
the "filesave" function? Maybe that's where I would set
the filename also?
 

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