The way you do this is prompt only the first time, and store the response in
the registry using the SaveSetting command
Then, each subsequrnt time a document is created, check the regsitry entry
using GetSetting, and use the Autotext entry whose name you have stored. You
can have a common entry for all your templates.
You might also want to provide an "Update details" function to allow the
user to change their details, for instance if they made a mistake first time
round

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
> Hi All,
>
[quoted text clipped - 30 lines]
>
> Any advice welcome
mark - 10 Mar 2005 12:19 GMT
Hi Jonathan,
Thanks for the response.
I'll try it out, I'll have to look up how you do this.
If you have any examples it would save a lot of time for me, if not watch
this space as I'm fairly new to VBA.
TIA
Mark
> The way you do this is prompt only the first time, and store the response in
> the registry using the SaveSetting command
[quoted text clipped - 6 lines]
> user to change their details, for instance if they made a mistake first time
> round
Jonathan West - 10 Mar 2005 12:27 GMT
> Hi Jonathan,
>
[quoted text clipped - 3 lines]
> If you have any examples it would save a lot of time for me, if not watch
> this space as I'm fairly new to VBA.
There are code examples in thw Word VBA Help for GetSetting and SaveSetting.
If you have already got your code to the point where you can produce a
prompt asking which layout to use, you are already 90% of the way there.
Just have your code use GetSetting to retrieve the registry value if
present.
If it's not present, show the prompt and save the user choice.
If the registry value is present, use it to set the layout.
By all means post back here if you get stuck.

Signature
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org
You might store the information you want in a local AutoText global and use
AutoText fields to insert that information. That way, the same template will
give different results for different users. This would require no vba in the
templates themselves.

Signature
Charles Kenyon
Word New User FAQ & Web Directory: http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide
See also the MVP FAQ: http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
> Hi All,
>
[quoted text clipped - 30 lines]
>
> Any advice welcome