Solved

Autorun macro from Word 2000 does not run in Word 2003

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
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:

726 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