Solved

Autorun macro from Word 2000 does not run in Word 2003

Posted on 2004-08-10
4
978 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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There is a feature provided by MS Word that lets you create an Table of Contents for your Word document automatically. To use this feature for other documents there are two steps involved,   1.  Prepare your document for a table of contents (he…
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.

827 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