View Single Post
 
Old 08-08-2022, 06:55 AM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,383
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by Shelley Lou View Post
Macropod, I have just run DemoB and works perfectly if there are no cross reference fields within the document but appears to bug if there are cross reference fields.

Code:
.Start = .Words(2).Start
You could insert:
Code:
ActiveWindow.ActivePane.View.ShowFieldCodes = True
after:
Code:
Application.ScreenUpdating = False
and:
Code:
ActiveWindow.ActivePane.View.ShowFieldCodes = False
before:
Code:
Application.ScreenUpdating = True
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote