Word Notification on Update Fields

G

Greg Maxey

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?
 
Z

zkid

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.
 
G

Greg Maxey

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

zkid

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

Greg Maxey

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.
 
T

Tony Jollans

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)
 
T

Tony Jollans

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
:(
 
Z

zkid

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.
 
G

Greg Maxey

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.

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 said:
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.
 
Z

zkid

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 said:
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.

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 said:
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.

:

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.



:

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.
 
G

Greg Maxey

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.

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 said:
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.

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.

:

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.

:

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.



:

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.
 
T

Tony Jollans

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
 
G

Greg Maxey

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
 
Z

zkid

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 said:
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.

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 said:
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.

:

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.

:

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.



:

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.
 
T

Tony Jollans

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 said:
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 said:
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.

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.

:

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.

:

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.

:

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.



:

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.
 
G

Greg Maxey

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.

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 said:
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.

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.

:

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.

:

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.

:

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.



:

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top