Solved

Autorun macro from Word 2000 does not run in Word 2003

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Introduction Authors who set out to write any sort of lengthy piece for online submission—be it a long question or comment on a technical form, an article, or a substantial blog entry—often find it useful to work up a draft in an editor other t…
This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
In a previous video Micro Tutorial here at Experts Exchange (http://www.experts-exchange.com/videos/1358/How-to-get-a-free-trial-of-Office-365-with-the-Office-2016-desktop-applications.html), I explained how to get a free, one-month trial of Office …

810 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