Hi -- I need to know how to create an automatic message 'popup' that will
open when a user opens a particular template. Can I use 'forms' or do I need
to actually write a script using Visual Basic? Any information on how this
script might be written would also help.
Thanks!
A Foster
Jonathan West - 27 Nov 2006 17:51 GMT
> Hi -- I need to know how to create an automatic message 'popup' that will
> open when a user opens a particular template. Can I use 'forms' or do I
> need
> to actually write a script using Visual Basic? Any information on how
> this
> script might be written would also help.
Create a new module in the template using the VBA editor. Create a macro
named AutoOpen if you want the popup to happen every time a document based
on the template is opened, or AutoNew if you want the popup to happen when a
new document based on the template is created.
What do you want this popup to contain? is a simple messagebox enough?

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
Doug Robbins - Word MVP - 27 Nov 2006 18:12 GMT
I assume that by "when a user opens a particular template" you mean that
"when a user creates a new document by selecting the template in the
File>New dialog.
If that is the case and it is just a message that you want to display,
create the following macro IN the template:
Sub Autonew()
Msgbox "This is my message."
End Sub
If however you need the user to be able to input information, you are better
off to use a userform.
See the article "How to create a Userform" at:
http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Hi -- I need to know how to create an automatic message 'popup' that will
> open when a user opens a particular template. Can I use 'forms' or do I
[quoted text clipped - 6 lines]
>
> A Foster