Thread: [Solved] Tab issues with Word Mac 365
View Single Post
 
Old 08-08-2022, 12:04 AM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Your second macro starts off with:
Set Rng = Selection.Range
Since the document already had:
.Protect Type:=wdAllowOnlyFormFields
before the macro was run, Selection.Range would have been pointing to a formfield and you should be collapsing the range before proceeding:
Code:
With Rng
  .Collapse wdCollapseEnd
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote