In both Word 2003 and 2007 if I have a REF field in a footnote, select the
footnote range and press F9 Word throws up a notification that it can not
undo this action and asked if I want to continue.

After clicking yes the field updates but I can undo it with Ctrl z without a
problem.

Anyone know why this prompt appears?


--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.

RE: Word Notification on Update Fields by zkid

zkid
Thu Dec 06 17:36:02 PST 2007

I've seen this message under two circumstances:

1. The document in question has a bit of corruption; and/or
2. There are a plethora of field codes, cross-references, table of contents
hyperlinks, etc.



"Greg Maxey" wrote:

> In both Word 2003 and 2007 if I have a REF field in a footnote, select the
> footnote range and press F9 Word throws up a notification that it can not
> undo this action and asked if I want to continue.
>
> After clicking yes the field updates but I can undo it with Ctrl z without a
> problem.
>
> Anyone know why this prompt appears?
>
>
> --
> Greg Maxey/Word MVP
> See:
> http://gregmaxey.mvps.org/word_tips.htm
> For some helpful tips using Word.
>
>
>

Re: Word Notification on Update Fields by Greg

Greg
Thu Dec 06 18:32:39 PST 2007

This happens with a new blank document containing only one REF field in a
single footnote.

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


zkid wrote:
> I've seen this message under two circumstances:
>
> 1. The document in question has a bit of corruption; and/or
> 2. There are a plethora of field codes, cross-references, table of
> contents hyperlinks, etc.
>
>
>
> "Greg Maxey" wrote:
>
>> In both Word 2003 and 2007 if I have a REF field in a footnote,
>> select the footnote range and press F9 Word throws up a notification
>> that it can not undo this action and asked if I want to continue.
>>
>> After clicking yes the field updates but I can undo it with Ctrl z
>> without a problem.
>>
>> Anyone know why this prompt appears?
>>
>>
>> --
>> Greg Maxey/Word MVP
>> See:
>> http://gregmaxey.mvps.org/word_tips.htm
>> For some helpful tips using Word.



Re: Word Notification on Update Fields by zkid

zkid
Thu Dec 06 18:41:01 PST 2007

Are you having the same problem on a different computer? If not, then your
normal template is corrupt and needs to be deleted.

"Greg Maxey" wrote:

> This happens with a new blank document containing only one REF field in a
> single footnote.
>
> --
> Greg Maxey/Word MVP
> See:
> http://gregmaxey.mvps.org/word_tips.htm
> For some helpful tips using Word.
>
>
> zkid wrote:
> > I've seen this message under two circumstances:
> >
> > 1. The document in question has a bit of corruption; and/or
> > 2. There are a plethora of field codes, cross-references, table of
> > contents hyperlinks, etc.
> >
> >
> >
> > "Greg Maxey" wrote:
> >
> >> In both Word 2003 and 2007 if I have a REF field in a footnote,
> >> select the footnote range and press F9 Word throws up a notification
> >> that it can not undo this action and asked if I want to continue.
> >>
> >> After clicking yes the field updates but I can undo it with Ctrl z
> >> without a problem.
> >>
> >> Anyone know why this prompt appears?
> >>
> >>
> >> --
> >> Greg Maxey/Word MVP
> >> See:
> >> http://gregmaxey.mvps.org/word_tips.htm
> >> For some helpful tips using Word.
>
>
>

Re: Word Notification on Update Fields by Greg

Greg
Thu Dec 06 19:30:00 PST 2007

I may be behind the times, but I only have one computer. It happens in
Word2003 with normal.dot and in Word2007 with normal.dotm. It also happens
with document created using other templates.

--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


zkid wrote:
> Are you having the same problem on a different computer? If not,
> then your normal template is corrupt and needs to be deleted.
>
> "Greg Maxey" wrote:
>
>> This happens with a new blank document containing only one REF field
>> in a single footnote.
>>
>> --
>> Greg Maxey/Word MVP
>> See:
>> http://gregmaxey.mvps.org/word_tips.htm
>> For some helpful tips using Word.
>>
>>
>> zkid wrote:
>>> I've seen this message under two circumstances:
>>>
>>> 1. The document in question has a bit of corruption; and/or
>>> 2. There are a plethora of field codes, cross-references, table of
>>> contents hyperlinks, etc.
>>>
>>>
>>>
>>> "Greg Maxey" wrote:
>>>
>>>> In both Word 2003 and 2007 if I have a REF field in a footnote,
>>>> select the footnote range and press F9 Word throws up a
>>>> notification that it can not undo this action and asked if I want
>>>> to continue.
>>>>
>>>> After clicking yes the field updates but I can undo it with Ctrl z
>>>> without a problem.
>>>>
>>>> Anyone know why this prompt appears?
>>>>
>>>>
>>>> --
>>>> Greg Maxey/Word MVP
>>>> See:
>>>> http://gregmaxey.mvps.org/word_tips.htm
>>>> For some helpful tips using Word.



Re: Word Notification on Update Fields by Tony

Tony
Fri Dec 07 02:37:51 PST 2007

I just got this - once - but I *could* undo it despite the message and after
that I haven't been able to reproduce it. (2007)

--
Enjoy,
Tony

"Greg Maxey" <gmaxey@mvps.oSCARrOMEOgOLF> wrote in message
news:%23PLUGy0NIHA.4880@TK2MSFTNGP03.phx.gbl...
> In both Word 2003 and 2007 if I have a REF field in a footnote, select the
> footnote range and press F9 Word throws up a notification that it can not
> undo this action and asked if I want to continue.
>
> After clicking yes the field updates but I can undo it with Ctrl z without
> a problem.
>
> Anyone know why this prompt appears?
>
>
> --
> Greg Maxey/Word MVP
> See:
> http://gregmaxey.mvps.org/word_tips.htm
> For some helpful tips using Word.
>
>


Re: Word Notification on Update Fields by Tony

Tony
Fri Dec 07 02:42:26 PST 2007

Actually I can reproduce it but can't quite see the circumstances that cause
it. However I can always undo it - and, no, I haven't a clue why it appears
:(

--
Enjoy,
Tony

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:umvuP1LOIHA.280@TK2MSFTNGP03.phx.gbl...
>I just got this - once - but I *could* undo it despite the message and
>after that I haven't been able to reproduce it. (2007)
>
> --
> Enjoy,
> Tony
>
> "Greg Maxey" <gmaxey@mvps.oSCARrOMEOgOLF> wrote in message
> news:%23PLUGy0NIHA.4880@TK2MSFTNGP03.phx.gbl...
>> In both Word 2003 and 2007 if I have a REF field in a footnote, select
>> the footnote range and press F9 Word throws up a notification that it can
>> not undo this action and asked if I want to continue.
>>
>> After clicking yes the field updates but I can undo it with Ctrl z
>> without a problem.
>>
>> Anyone know why this prompt appears?
>>
>>
>> --
>> Greg Maxey/Word MVP
>> See:
>> http://gregmaxey.mvps.org/word_tips.htm
>> For some helpful tips using Word.
>>
>>
>


Re: Word Notification on Update Fields by zkid

zkid
Fri Dec 07 09:42:01 PST 2007

Okay. Please humor me and rename normal.dot to Old normal.dot. Then open
Word and try your template again.

I've seen your name around, so I'm assuming you know where the normal
template is located. For anyone else reading this:

C:\Documents and Settings\[your username]\Application Data\Microsoft\Templates

If that doesn't do the trick, then try deselecting your add-ins. If it
still is a problem, then most likely there is some corruption in the
templates themselves.

"Greg Maxey" wrote:

> I may be behind the times, but I only have one computer. It happens in
> Word2003 with normal.dot and in Word2007 with normal.dotm. It also happens
> with document created using other templates.
>
> --
> Greg Maxey/Word MVP
> See:
> http://gregmaxey.mvps.org/word_tips.htm
> For some helpful tips using Word.
>
>
> zkid wrote:
> > Are you having the same problem on a different computer? If not,
> > then your normal template is corrupt and needs to be deleted.
> >
> > "Greg Maxey" wrote:
> >
> >> This happens with a new blank document containing only one REF field
> >> in a single footnote.
> >>
> >> --
> >> Greg Maxey/Word MVP
> >> See:
> >> http://gregmaxey.mvps.org/word_tips.htm
> >> For some helpful tips using Word.
> >>
> >>
> >> zkid wrote:
> >>> I've seen this message under two circumstances:
> >>>
> >>> 1. The document in question has a bit of corruption; and/or
> >>> 2. There are a plethora of field codes, cross-references, table of
> >>> contents hyperlinks, etc.
> >>>
> >>>
> >>>
> >>> "Greg Maxey" wrote:
> >>>
> >>>> In both Word 2003 and 2007 if I have a REF field in a footnote,
> >>>> select the footnote range and press F9 Word throws up a
> >>>> notification that it can not undo this action and asked if I want
> >>>> to continue.
> >>>>
> >>>> After clicking yes the field updates but I can undo it with Ctrl z
> >>>> without a problem.
> >>>>
> >>>> Anyone know why this prompt appears?
> >>>>
> >>>>
> >>>> --
> >>>> Greg Maxey/Word MVP
> >>>> See:
> >>>> http://gregmaxey.mvps.org/word_tips.htm
> >>>> For some helpful tips using Word.
>
>
>

Re: Word Notification on Update Fields by Greg

Greg
Fri Dec 07 18:16:58 PST 2007

zkid,

It doesn't seem to matter. Old normal.dot, new normal.dot, any of a dozen
custom templates that I routinely use, with or without Add-Ins. If I insert
a REF field in the footnote storyrange, CTRL+a to select all, and click F9
that dialog appears.



--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


zkid wrote:
> Okay. Please humor me and rename normal.dot to Old normal.dot. Then
> open Word and try your template again.
>
> I've seen your name around, so I'm assuming you know where the normal
> template is located. For anyone else reading this:
>
> C:\Documents and Settings\[your username]\Application
> Data\Microsoft\Templates
>
> If that doesn't do the trick, then try deselecting your add-ins. If
> it
> still is a problem, then most likely there is some corruption in the
> templates themselves.
>
> "Greg Maxey" wrote:
>
>> I may be behind the times, but I only have one computer. It happens
>> in Word2003 with normal.dot and in Word2007 with normal.dotm. It
>> also happens with document created using other templates.
>>
>> --
>> Greg Maxey/Word MVP
>> See:
>> http://gregmaxey.mvps.org/word_tips.htm
>> For some helpful tips using Word.
>>
>>
>> zkid wrote:
>>> Are you having the same problem on a different computer? If not,
>>> then your normal template is corrupt and needs to be deleted.
>>>
>>> "Greg Maxey" wrote:
>>>
>>>> This happens with a new blank document containing only one REF
>>>> field in a single footnote.
>>>>
>>>> --
>>>> Greg Maxey/Word MVP
>>>> See:
>>>> http://gregmaxey.mvps.org/word_tips.htm
>>>> For some helpful tips using Word.
>>>>
>>>>
>>>> zkid wrote:
>>>>> I've seen this message under two circumstances:
>>>>>
>>>>> 1. The document in question has a bit of corruption; and/or
>>>>> 2. There are a plethora of field codes, cross-references, table
>>>>> of contents hyperlinks, etc.
>>>>>
>>>>>
>>>>>
>>>>> "Greg Maxey" wrote:
>>>>>
>>>>>> In both Word 2003 and 2007 if I have a REF field in a footnote,
>>>>>> select the footnote range and press F9 Word throws up a
>>>>>> notification that it can not undo this action and asked if I want
>>>>>> to continue.
>>>>>>
>>>>>> After clicking yes the field updates but I can undo it with Ctrl
>>>>>> z without a problem.
>>>>>>
>>>>>> Anyone know why this prompt appears?
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Greg Maxey/Word MVP
>>>>>> See:
>>>>>> http://gregmaxey.mvps.org/word_tips.htm
>>>>>> For some helpful tips using Word.



Re: Word Notification on Update Fields by zkid

zkid
Fri Dec 07 19:23:01 PST 2007

Hmmm. Okay, instead of selecting the footnote storyrange, try doing a print
preview manually. Do you still get the funky message? Print preview should
update all field codes in the doc without the need to select anything.

"Greg Maxey" wrote:

> zkid,
>
> It doesn't seem to matter. Old normal.dot, new normal.dot, any of a dozen
> custom templates that I routinely use, with or without Add-Ins. If I insert
> a REF field in the footnote storyrange, CTRL+a to select all, and click F9
> that dialog appears.
>
>
>
> --
> Greg Maxey/Word MVP
> See:
> http://gregmaxey.mvps.org/word_tips.htm
> For some helpful tips using Word.
>
>
> zkid wrote:
> > Okay. Please humor me and rename normal.dot to Old normal.dot. Then
> > open Word and try your template again.
> >
> > I've seen your name around, so I'm assuming you know where the normal
> > template is located. For anyone else reading this:
> >
> > C:\Documents and Settings\[your username]\Application
> > Data\Microsoft\Templates
> >
> > If that doesn't do the trick, then try deselecting your add-ins. If
> > it
> > still is a problem, then most likely there is some corruption in the
> > templates themselves.
> >
> > "Greg Maxey" wrote:
> >
> >> I may be behind the times, but I only have one computer. It happens
> >> in Word2003 with normal.dot and in Word2007 with normal.dotm. It
> >> also happens with document created using other templates.
> >>
> >> --
> >> Greg Maxey/Word MVP
> >> See:
> >> http://gregmaxey.mvps.org/word_tips.htm
> >> For some helpful tips using Word.
> >>
> >>
> >> zkid wrote:
> >>> Are you having the same problem on a different computer? If not,
> >>> then your normal template is corrupt and needs to be deleted.
> >>>
> >>> "Greg Maxey" wrote:
> >>>
> >>>> This happens with a new blank document containing only one REF
> >>>> field in a single footnote.
> >>>>
> >>>> --
> >>>> Greg Maxey/Word MVP
> >>>> See:
> >>>> http://gregmaxey.mvps.org/word_tips.htm
> >>>> For some helpful tips using Word.
> >>>>
> >>>>
> >>>> zkid wrote:
> >>>>> I've seen this message under two circumstances:
> >>>>>
> >>>>> 1. The document in question has a bit of corruption; and/or
> >>>>> 2. There are a plethora of field codes, cross-references, table
> >>>>> of contents hyperlinks, etc.
> >>>>>
> >>>>>
> >>>>>
> >>>>> "Greg Maxey" wrote:
> >>>>>
> >>>>>> In both Word 2003 and 2007 if I have a REF field in a footnote,
> >>>>>> select the footnote range and press F9 Word throws up a
> >>>>>> notification that it can not undo this action and asked if I want
> >>>>>> to continue.
> >>>>>>
> >>>>>> After clicking yes the field updates but I can undo it with Ctrl
> >>>>>> z without a problem.
> >>>>>>
> >>>>>> Anyone know why this prompt appears?
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Greg Maxey/Word MVP
> >>>>>> See:
> >>>>>> http://gregmaxey.mvps.org/word_tips.htm
> >>>>>> For some helpful tips using Word.
>
>
>

Re: Word Notification on Update Fields by Greg

Greg
Fri Dec 07 20:04:32 PST 2007

No it doesn't occur with Print, PrintPreview or by updating the individual
field. The prompt appears with Ctrl+a and F9 or when updating document
fields with VBA if the footer contains a REF field.

Sub myUpdateFields()
Dim rngStory As Word.Range
Dim oShp As Word.Shape
For Each rngStory In ActiveDocument.StoryRanges
Do
On Error Resume Next
rngStory.Fields.Update
Select Case rngStory.StoryType
Case 6, 7, 8, 9, 10, 11
If rngStory.ShapeRange.Count > 0 Then
For Each oShp In rngStory.ShapeRange
If oShp.TextFrame.HasText Then
oShp.TextFrame.TextRange.Fields.Update
End If
Next oShp
End If
Case Else
'Do Nothing
End Select
On Error GoTo 0
'Get next linked story (if any)
Set rngStory = rngStory.NextStoryRange
Loop Until rngStory Is Nothing
Next rngStory
End Sub


--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


zkid wrote:
> Hmmm. Okay, instead of selecting the footnote storyrange, try doing
> a print preview manually. Do you still get the funky message? Print
> preview should update all field codes in the doc without the need to
> select anything.
>
> "Greg Maxey" wrote:
>
>> zkid,
>>
>> It doesn't seem to matter. Old normal.dot, new normal.dot, any of a
>> dozen custom templates that I routinely use, with or without
>> Add-Ins. If I insert a REF field in the footnote storyrange, CTRL+a
>> to select all, and click F9 that dialog appears.
>>
>>
>>
>> --
>> Greg Maxey/Word MVP
>> See:
>> http://gregmaxey.mvps.org/word_tips.htm
>> For some helpful tips using Word.
>>
>>
>> zkid wrote:
>>> Okay. Please humor me and rename normal.dot to Old normal.dot.
>>> Then open Word and try your template again.
>>>
>>> I've seen your name around, so I'm assuming you know where the
>>> normal template is located. For anyone else reading this:
>>>
>>> C:\Documents and Settings\[your username]\Application
>>> Data\Microsoft\Templates
>>>
>>> If that doesn't do the trick, then try deselecting your add-ins. If
>>> it
>>> still is a problem, then most likely there is some corruption in the
>>> templates themselves.
>>>
>>> "Greg Maxey" wrote:
>>>
>>>> I may be behind the times, but I only have one computer. It
>>>> happens in Word2003 with normal.dot and in Word2007 with
>>>> normal.dotm. It also happens with document created using other
>>>> templates.
>>>>
>>>> --
>>>> Greg Maxey/Word MVP
>>>> See:
>>>> http://gregmaxey.mvps.org/word_tips.htm
>>>> For some helpful tips using Word.
>>>>
>>>>
>>>> zkid wrote:
>>>>> Are you having the same problem on a different computer? If not,
>>>>> then your normal template is corrupt and needs to be deleted.
>>>>>
>>>>> "Greg Maxey" wrote:
>>>>>
>>>>>> This happens with a new blank document containing only one REF
>>>>>> field in a single footnote.
>>>>>>
>>>>>> --
>>>>>> Greg Maxey/Word MVP
>>>>>> See:
>>>>>> http://gregmaxey.mvps.org/word_tips.htm
>>>>>> For some helpful tips using Word.
>>>>>>
>>>>>>
>>>>>> zkid wrote:
>>>>>>> I've seen this message under two circumstances:
>>>>>>>
>>>>>>> 1. The document in question has a bit of corruption; and/or
>>>>>>> 2. There are a plethora of field codes, cross-references, table
>>>>>>> of contents hyperlinks, etc.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "Greg Maxey" wrote:
>>>>>>>
>>>>>>>> In both Word 2003 and 2007 if I have a REF field in a footnote,
>>>>>>>> select the footnote range and press F9 Word throws up a
>>>>>>>> notification that it can not undo this action and asked if I
>>>>>>>> want to continue.
>>>>>>>>
>>>>>>>> After clicking yes the field updates but I can undo it with
>>>>>>>> Ctrl z without a problem.
>>>>>>>>
>>>>>>>> Anyone know why this prompt appears?
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Greg Maxey/Word MVP
>>>>>>>> See:
>>>>>>>> http://gregmaxey.mvps.org/word_tips.htm
>>>>>>>> For some helpful tips using Word.



Re: Word Notification on Update Fields by Tony

Tony
Sat Dec 08 06:52:02 PST 2007

I see from other posts that it can happen in a few situations but for me
with footnotes it seems to be consistent - updating fields in the whole
story triggers that message. A sample bit of code just for fun ...

With Documents.Add
With .Footnotes.Add(Range:=.Range, Reference:="")
.Range.Fields.Add Range:=.Range, Text:="Ref Test"
.Range.Document.StoryRanges(.Range.StoryType).Fields.Update
' Above triggers false message
End With
' Tidy up and prove the message wrong
Do While Not .Saved
.Undo
Loop
.Close
End With

--
Enjoy,
Tony

"Tony Jollans" <My forename at my surname dot com> wrote in message
news:%23ajb03LOIHA.4740@TK2MSFTNGP02.phx.gbl...
> Actually I can reproduce it but can't quite see the circumstances that
> cause it. However I can always undo it - and, no, I haven't a clue why it
> appears :(
>
> --
> Enjoy,
> Tony
>
> "Tony Jollans" <My forename at my surname dot com> wrote in message
> news:umvuP1LOIHA.280@TK2MSFTNGP03.phx.gbl...
>>I just got this - once - but I *could* undo it despite the message and
>>after that I haven't been able to reproduce it. (2007)
>>
>> --
>> Enjoy,
>> Tony
>>
>> "Greg Maxey" <gmaxey@mvps.oSCARrOMEOgOLF> wrote in message
>> news:%23PLUGy0NIHA.4880@TK2MSFTNGP03.phx.gbl...
>>> In both Word 2003 and 2007 if I have a REF field in a footnote, select
>>> the footnote range and press F9 Word throws up a notification that it
>>> can not undo this action and asked if I want to continue.
>>>
>>> After clicking yes the field updates but I can undo it with Ctrl z
>>> without a problem.
>>>
>>> Anyone know why this prompt appears?
>>>
>>>
>>> --
>>> Greg Maxey/Word MVP
>>> See:
>>> http://gregmaxey.mvps.org/word_tips.htm
>>> For some helpful tips using Word.
>>>
>>>
>>
>


Re: Word Notification on Update Fields by Greg

Greg
Sat Dec 08 07:48:36 PST 2007

Tony,

Yes. I first came across it the other day running this code. I am sure
that that was the first time I have ever seen it and the first time I had
ever had a REF field in a footnote.

Sub myUpdateFields()
Dim rngStory As Word.Range
Dim oShp As Word.Shape
For Each rngStory In ActiveDocument.StoryRanges
Do
On Error Resume Next
rngStory.Fields.Update
Select Case rngStory.StoryType
Case 6, 7, 8, 9, 10, 11
If rngStory.ShapeRange.Count > 0 Then
For Each oShp In rngStory.ShapeRange
If oShp.TextFrame.HasText Then
oShp.TextFrame.TextRange.Fields.Update
End If
Next oShp
End If
Case Else
'Do Nothing
End Select
On Error GoTo 0
'Get next linked story (if any)
Set rngStory = rngStory.NextStoryRange
Loop Until rngStory Is Nothing
Next rngStory
End Sub


--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


Tony Jollans wrote:
> I see from other posts that it can happen in a few situations but for
> me with footnotes it seems to be consistent - updating fields in the
> whole story triggers that message. A sample bit of code just for fun
> ...
> With Documents.Add
> With .Footnotes.Add(Range:=.Range, Reference:="")
> .Range.Fields.Add Range:=.Range, Text:="Ref Test"
> .Range.Document.StoryRanges(.Range.StoryType).Fields.Update
> ' Above triggers false message
> End With
> ' Tidy up and prove the message wrong
> Do While Not .Saved
> .Undo
> Loop
> .Close
> End With
>
>
> "Tony Jollans" <My forename at my surname dot com> wrote in message
> news:%23ajb03LOIHA.4740@TK2MSFTNGP02.phx.gbl...
>> Actually I can reproduce it but can't quite see the circumstances
>> that cause it. However I can always undo it - and, no, I haven't a
>> clue why it appears :(
>>
>> --
>> Enjoy,
>> Tony
>>
>> "Tony Jollans" <My forename at my surname dot com> wrote in message
>> news:umvuP1LOIHA.280@TK2MSFTNGP03.phx.gbl...
>>> I just got this - once - but I *could* undo it despite the message
>>> and after that I haven't been able to reproduce it. (2007)
>>>
>>> --
>>> Enjoy,
>>> Tony
>>>
>>> "Greg Maxey" <gmaxey@mvps.oSCARrOMEOgOLF> wrote in message
>>> news:%23PLUGy0NIHA.4880@TK2MSFTNGP03.phx.gbl...
>>>> In both Word 2003 and 2007 if I have a REF field in a footnote,
>>>> select the footnote range and press F9 Word throws up a
>>>> notification that it can not undo this action and asked if I want
>>>> to continue. After clicking yes the field updates but I can undo it
>>>> with Ctrl z
>>>> without a problem.
>>>>
>>>> Anyone know why this prompt appears?
>>>>
>>>>
>>>> --
>>>> Greg Maxey/Word MVP
>>>> See:
>>>> http://gregmaxey.mvps.org/word_tips.htm
>>>> For some helpful tips using Word.



Re: Word Notification on Update Fields by zkid

zkid
Sun Dec 09 13:20:01 PST 2007

Forgive my ignorance, but is it such a bad thing to just go ahead and update
all of the fields in the doc? I just plug in the code for doing a print
preview, and that has never given me any grief.

Also, I note that you have two Error capturing statements. I'm wondering if
trapping the actual error by number might be an option. That way, you can
clear it completely and Word's stack won't get so cluttered.

Otherwise, from what Tony says, it looks like footnotes are unruly children.

"Greg Maxey" wrote:

> No it doesn't occur with Print, PrintPreview or by updating the individual
> field. The prompt appears with Ctrl+a and F9 or when updating document
> fields with VBA if the footer contains a REF field.
>
> Sub myUpdateFields()
> Dim rngStory As Word.Range
> Dim oShp As Word.Shape
> For Each rngStory In ActiveDocument.StoryRanges
> Do
> On Error Resume Next
> rngStory.Fields.Update
> Select Case rngStory.StoryType
> Case 6, 7, 8, 9, 10, 11
> If rngStory.ShapeRange.Count > 0 Then
> For Each oShp In rngStory.ShapeRange
> If oShp.TextFrame.HasText Then
> oShp.TextFrame.TextRange.Fields.Update
> End If
> Next oShp
> End If
> Case Else
> 'Do Nothing
> End Select
> On Error GoTo 0
> 'Get next linked story (if any)
> Set rngStory = rngStory.NextStoryRange
> Loop Until rngStory Is Nothing
> Next rngStory
> End Sub
>
>
> --
> Greg Maxey/Word MVP
> See:
> http://gregmaxey.mvps.org/word_tips.htm
> For some helpful tips using Word.
>
>
> zkid wrote:
> > Hmmm. Okay, instead of selecting the footnote storyrange, try doing
> > a print preview manually. Do you still get the funky message? Print
> > preview should update all field codes in the doc without the need to
> > select anything.
> >
> > "Greg Maxey" wrote:
> >
> >> zkid,
> >>
> >> It doesn't seem to matter. Old normal.dot, new normal.dot, any of a
> >> dozen custom templates that I routinely use, with or without
> >> Add-Ins. If I insert a REF field in the footnote storyrange, CTRL+a
> >> to select all, and click F9 that dialog appears.
> >>
> >>
> >>
> >> --
> >> Greg Maxey/Word MVP
> >> See:
> >> http://gregmaxey.mvps.org/word_tips.htm
> >> For some helpful tips using Word.
> >>
> >>
> >> zkid wrote:
> >>> Okay. Please humor me and rename normal.dot to Old normal.dot.
> >>> Then open Word and try your template again.
> >>>
> >>> I've seen your name around, so I'm assuming you know where the
> >>> normal template is located. For anyone else reading this:
> >>>
> >>> C:\Documents and Settings\[your username]\Application
> >>> Data\Microsoft\Templates
> >>>
> >>> If that doesn't do the trick, then try deselecting your add-ins. If
> >>> it
> >>> still is a problem, then most likely there is some corruption in the
> >>> templates themselves.
> >>>
> >>> "Greg Maxey" wrote:
> >>>
> >>>> I may be behind the times, but I only have one computer. It
> >>>> happens in Word2003 with normal.dot and in Word2007 with
> >>>> normal.dotm. It also happens with document created using other
> >>>> templates.
> >>>>
> >>>> --
> >>>> Greg Maxey/Word MVP
> >>>> See:
> >>>> http://gregmaxey.mvps.org/word_tips.htm
> >>>> For some helpful tips using Word.
> >>>>
> >>>>
> >>>> zkid wrote:
> >>>>> Are you having the same problem on a different computer? If not,
> >>>>> then your normal template is corrupt and needs to be deleted.
> >>>>>
> >>>>> "Greg Maxey" wrote:
> >>>>>
> >>>>>> This happens with a new blank document containing only one REF
> >>>>>> field in a single footnote.
> >>>>>>
> >>>>>> --
> >>>>>> Greg Maxey/Word MVP
> >>>>>> See:
> >>>>>> http://gregmaxey.mvps.org/word_tips.htm
> >>>>>> For some helpful tips using Word.
> >>>>>>
> >>>>>>
> >>>>>> zkid wrote:
> >>>>>>> I've seen this message under two circumstances:
> >>>>>>>
> >>>>>>> 1. The document in question has a bit of corruption; and/or
> >>>>>>> 2. There are a plethora of field codes, cross-references, table
> >>>>>>> of contents hyperlinks, etc.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> "Greg Maxey" wrote:
> >>>>>>>
> >>>>>>>> In both Word 2003 and 2007 if I have a REF field in a footnote,
> >>>>>>>> select the footnote range and press F9 Word throws up a
> >>>>>>>> notification that it can not undo this action and asked if I
> >>>>>>>> want to continue.
> >>>>>>>>
> >>>>>>>> After clicking yes the field updates but I can undo it with
> >>>>>>>> Ctrl z without a problem.
> >>>>>>>>
> >>>>>>>> Anyone know why this prompt appears?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Greg Maxey/Word MVP
> >>>>>>>> See:
> >>>>>>>> http://gregmaxey.mvps.org/word_tips.htm
> >>>>>>>> For some helpful tips using Word.
>
>
>

Re: Word Notification on Update Fields by Tony

Tony
Sun Dec 09 13:35:57 PST 2007

Hi zkid,

Have you tried this? It's not an error; you can't trap it.

The message can be suppressed with DisplayAlerts None but the question was
"Why", not "How do I get round it?" - and, yes, Word does have some unruly
children and that may be the only answer.

--
Enjoy,
Tony

"zkid" <zkid@discussions.microsoft.com> wrote in message
news:C487B629-FE1A-4F40-B213-6AF1AAA534A4@microsoft.com...
> Forgive my ignorance, but is it such a bad thing to just go ahead and
> update
> all of the fields in the doc? I just plug in the code for doing a print
> preview, and that has never given me any grief.
>
> Also, I note that you have two Error capturing statements. I'm wondering
> if
> trapping the actual error by number might be an option. That way, you can
> clear it completely and Word's stack won't get so cluttered.
>
> Otherwise, from what Tony says, it looks like footnotes are unruly
> children.
>
> "Greg Maxey" wrote:
>
>> No it doesn't occur with Print, PrintPreview or by updating the
>> individual
>> field. The prompt appears with Ctrl+a and F9 or when updating document
>> fields with VBA if the footer contains a REF field.
>>
>> Sub myUpdateFields()
>> Dim rngStory As Word.Range
>> Dim oShp As Word.Shape
>> For Each rngStory In ActiveDocument.StoryRanges
>> Do
>> On Error Resume Next
>> rngStory.Fields.Update
>> Select Case rngStory.StoryType
>> Case 6, 7, 8, 9, 10, 11
>> If rngStory.ShapeRange.Count > 0 Then
>> For Each oShp In rngStory.ShapeRange
>> If oShp.TextFrame.HasText Then
>> oShp.TextFrame.TextRange.Fields.Update
>> End If
>> Next oShp
>> End If
>> Case Else
>> 'Do Nothing
>> End Select
>> On Error GoTo 0
>> 'Get next linked story (if any)
>> Set rngStory = rngStory.NextStoryRange
>> Loop Until rngStory Is Nothing
>> Next rngStory
>> End Sub
>>
>>
>> --
>> Greg Maxey/Word MVP
>> See:
>> http://gregmaxey.mvps.org/word_tips.htm
>> For some helpful tips using Word.
>>
>>
>> zkid wrote:
>> > Hmmm. Okay, instead of selecting the footnote storyrange, try doing
>> > a print preview manually. Do you still get the funky message? Print
>> > preview should update all field codes in the doc without the need to
>> > select anything.
>> >
>> > "Greg Maxey" wrote:
>> >
>> >> zkid,
>> >>
>> >> It doesn't seem to matter. Old normal.dot, new normal.dot, any of a
>> >> dozen custom templates that I routinely use, with or without
>> >> Add-Ins. If I insert a REF field in the footnote storyrange, CTRL+a
>> >> to select all, and click F9 that dialog appears.
>> >>
>> >>
>> >>
>> >> --
>> >> Greg Maxey/Word MVP
>> >> See:
>> >> http://gregmaxey.mvps.org/word_tips.htm
>> >> For some helpful tips using Word.
>> >>
>> >>
>> >> zkid wrote:
>> >>> Okay. Please humor me and rename normal.dot to Old normal.dot.
>> >>> Then open Word and try your template again.
>> >>>
>> >>> I've seen your name around, so I'm assuming you know where the
>> >>> normal template is located. For anyone else reading this:
>> >>>
>> >>> C:\Documents and Settings\[your username]\Application
>> >>> Data\Microsoft\Templates
>> >>>
>> >>> If that doesn't do the trick, then try deselecting your add-ins. If
>> >>> it
>> >>> still is a problem, then most likely there is some corruption in the
>> >>> templates themselves.
>> >>>
>> >>> "Greg Maxey" wrote:
>> >>>
>> >>>> I may be behind the times, but I only have one computer. It
>> >>>> happens in Word2003 with normal.dot and in Word2007 with
>> >>>> normal.dotm. It also happens with document created using other
>> >>>> templates.
>> >>>>
>> >>>> --
>> >>>> Greg Maxey/Word MVP
>> >>>> See:
>> >>>> http://gregmaxey.mvps.org/word_tips.htm
>> >>>> For some helpful tips using Word.
>> >>>>
>> >>>>
>> >>>> zkid wrote:
>> >>>>> Are you having the same problem on a different computer? If not,
>> >>>>> then your normal template is corrupt and needs to be deleted.
>> >>>>>
>> >>>>> "Greg Maxey" wrote:
>> >>>>>
>> >>>>>> This happens with a new blank document containing only one REF
>> >>>>>> field in a single footnote.
>> >>>>>>
>> >>>>>> --
>> >>>>>> Greg Maxey/Word MVP
>> >>>>>> See:
>> >>>>>> http://gregmaxey.mvps.org/word_tips.htm
>> >>>>>> For some helpful tips using Word.
>> >>>>>>
>> >>>>>>
>> >>>>>> zkid wrote:
>> >>>>>>> I've seen this message under two circumstances:
>> >>>>>>>
>> >>>>>>> 1. The document in question has a bit of corruption; and/or
>> >>>>>>> 2. There are a plethora of field codes, cross-references, table
>> >>>>>>> of contents hyperlinks, etc.
>> >>>>>>>
>> >>>>>>>
>> >>>>>>>
>> >>>>>>> "Greg Maxey" wrote:
>> >>>>>>>
>> >>>>>>>> In both Word 2003 and 2007 if I have a REF field in a footnote,
>> >>>>>>>> select the footnote range and press F9 Word throws up a
>> >>>>>>>> notification that it can not undo this action and asked if I
>> >>>>>>>> want to continue.
>> >>>>>>>>
>> >>>>>>>> After clicking yes the field updates but I can undo it with
>> >>>>>>>> Ctrl z without a problem.
>> >>>>>>>>
>> >>>>>>>> Anyone know why this prompt appears?
>> >>>>>>>>
>> >>>>>>>>
>> >>>>>>>> --
>> >>>>>>>> Greg Maxey/Word MVP
>> >>>>>>>> See:
>> >>>>>>>> http://gregmaxey.mvps.org/word_tips.htm
>> >>>>>>>> For some helpful tips using Word.
>>
>>
>>


Re: Word Notification on Update Fields by Greg

Greg
Sun Dec 09 17:30:20 PST 2007

zkid,

There is nothing at all wrong to update all of the fields in a document.
That is exactly what I was doing when I first encountered this issue. I was
using the code shown below to
to update all the fields in a document as part after certain bookmarks where
defined in a Userform. I had never had a REF field in a footnote before and
was surprised by the alert that popped up.

I admit that PrintPreview and ClosePrintPreview is a quick and, as far as I
know, efficient way to update fields. I just don't normally use it because
sometimes there are other things that I might want to do with fields.

Sub myUpdateFields()
Dim rngStory As Word.Range
Dim oShp As Word.Shape
For Each rngStory In ActiveDocument.StoryRanges
Do
On Error Resume Next
rngStory.Fields.Update
Select Case rngStory.StoryType
Case 6, 7, 8, 9, 10, 11
If rngStory.ShapeRange.Count > 0 Then
For Each oShp In rngStory.ShapeRange
If oShp.TextFrame.HasText Then
oShp.TextFrame.TextRange.Fields.Update
End If
Next oShp
End If
Case Else
'Do Nothing
End Select
On Error GoTo 0
'Get next linked story (if any)
Set rngStory = rngStory.NextStoryRange
Loop Until rngStory Is Nothing
Next rngStory
End Sub

As Tony mentions, this post wasn't to find out how to stop the alert from
appearing but a question as to why it appears.



--
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.


zkid wrote:
> Forgive my ignorance, but is it such a bad thing to just go ahead and
> update all of the fields in the doc? I just plug in the code for
> doing a print preview, and that has never given me any grief.
>
> Also, I note that you have two Error capturing statements. I'm
> wondering if trapping the actual error by number might be an option.
> That way, you can clear it completely and Word's stack won't get so
> cluttered.
>
> Otherwise, from what Tony says, it looks like footnotes are unruly
> children.
>
> "Greg Maxey" wrote:
>
>> No it doesn't occur with Print, PrintPreview or by updating the
>> individual field. The prompt appears with Ctrl+a and F9 or when
>> updating document fields with VBA if the footer contains a REF field.
>>
>> Sub myUpdateFields()
>> Dim rngStory As Word.Range
>> Dim oShp As Word.Shape
>> For Each rngStory In ActiveDocument.StoryRanges
>> Do
>> On Error Resume Next
>> rngStory.Fields.Update
>> Select Case rngStory.StoryType
>> Case 6, 7, 8, 9, 10, 11
>> If rngStory.ShapeRange.Count > 0 Then
>> For Each oShp In rngStory.ShapeRange
>> If oShp.TextFrame.HasText Then
>> oShp.TextFrame.TextRange.Fields.Update
>> End If
>> Next oShp
>> End If
>> Case Else
>> 'Do Nothing
>> End Select
>> On Error GoTo 0
>> 'Get next linked story (if any)
>> Set rngStory = rngStory.NextStoryRange
>> Loop Until rngStory Is Nothing
>> Next rngStory
>> End Sub
>>
>>
>> --
>> Greg Maxey/Word MVP
>> See:
>> http://gregmaxey.mvps.org/word_tips.htm
>> For some helpful tips using Word.
>>
>>
>> zkid wrote:
>>> Hmmm. Okay, instead of selecting the footnote storyrange, try doing
>>> a print preview manually. Do you still get the funky message?
>>> Print preview should update all field codes in the doc without the
>>>