|
-
Dec 18th, 2009, 06:51 AM
#1
Thread Starter
Lively Member
[RESOLVED] Annoying...
Hi All,
I'm having a little issue with word 2003, in my office we use a custom normal.dot for just about everything (cooking, cleaning, storing beer, ya know the usual), one of the thing we used was an updatable field in the footer, showing the path of the document.
At initial open from the .dot, it would display document1 (as per the norm) then when you save a new doc from the .dot, close that document, and reopen it the footer would change to show the location path of where the docment is. That is when we used Word 2000.
after much searching I found this artical from MS (http://support.microsoft.com/kb/832897) about the fact that the auto update of fields a pone opening has been switched off in 2003 to allow a fast open response from word, but they kindly supplied a code to help with this.
IE:
Code:
Sub AutoOpen()
'
' AutoOpen Macro
' Macro created date by username
'
Dim aStory As Range
Dim aField As Field
For Each aStory In ActiveDocument.StoryRanges
For Each aField In aStory.Fields
aField.Update
Next aField
Next aStory
End Sub
The code works the first time you open word, but after you save a doc close it then reopen to check if the code will work to diplay the new location, it doesn't. unless you switch views to normal then back to print layout, which is daft to do that every time.
Is there an way to amend the above code to update the code every time like word 2000.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|