Solved

Autorun macro from Word 2000 does not run in Word 2003

Posted on 2004-08-10
4
980 Views
Last Modified: 2010-08-05
We have an autorun macro that we used in a word 2000 template that we cannot get to work in word 2003.  How can I fix this?
0
Comment
Question by:jab56
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 11764489
Can you post the macro?  What does the macro do?  Do you get an error when you run it or what?  Where is the template located that contains the macro?

There is no such thing as an Autorun macro to my knowledge:  They are AutoNew AutoOpen AutoClose AutoExec

Please clarify.  Thanks



0
 
LVL 1

Author Comment

by:jab56
ID: 11765694
I might have gotten the term wrong when I said Autorun.  I don't really know if it is even one of the other ones (autoopen autonew autoclose autoexec).

I talked to the user of this document, and he said that it is not really a macro, but it is using the header and footer and inserting a field in the form.  To see the command that it is using, I went to header/footer, then I right clicked on the header or footer that was created with the 'fillin' command and I could either 'update field' or 'toggle field code' and see the actual code used.  The code being used is '{FILLIN Case Number\*mergeformat\*'  
When you open the document, those fields will pop up boxes for the user to enter information that will populate the form.  The document is locked so the user cannot change anything once they are in the document.
When you use this document in Word2003, the header/footer 'FILLIN' field does not work.  There is no error message, it just opens the document without the prompts to enter the specific information..  The document has to reside in a folder on the local drive called  'My Documents' .

How can I get the FILLIN field to word again?

Thanks.
0
 
LVL 37

Accepted Solution

by:
Joanne M. Orzech earned 250 total points
ID: 11765797
Open the document, press Alt F9 to view all field codes.  You should see a field called ASK "Case Number"....something like that.

If you see that code, then press Alt F11 to go to VBA Editor.  View, Project Explorer, double click on your project name.  Under ThisDocument, paste the following code:

Sub AutoNew()
  Selection.WholeStory
  Selection.Fields.Update
  Selection.HomeKey
End Sub

Sub AutoOpen()
  Selection.WholeStory
  Selection.Fields.Update
  Selection.HomeKey
End Sub

Save template.  Close.  File New - you should now be asked for the information.  Good luck.
0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 11766300
Thanks jab56!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you ever need to create a 20 page Word document for some testing purpose? Are you tired of copying & pasting old boring "lorem ipsum" text over and over again, increasing font size and line space in order to make the document 20+ pages long? Look…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question