Solved

Autorun macro from Word 2000 does not run in Word 2003

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you work with Word a lot, you probably use styles. If you use styles a lot, you've probably balled your fist more often than not when working with the ribbon. In Word 2007/2010, one of the things that I find missing when using styles is a quic…
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 walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now