View Single Post
 
Old 03-13-2016, 06:58 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
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

The problem with that approach is that it will trigger the macro on any field titled 'MethodInspect' - which means that content control in any row. You might get better results by changing:
i = .Range.Tables(1).Range.ContentControls.Count
to:
i = .Range.Tables(1).Range.ContentControls.Count -1
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote