Thread: Date Fields
View Single Post
 
Old 05-15-2012, 11:20 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

Hi umesh,
Quote:
it also disables the field for table of contents fields
I doubt it - the code specifically tests whether the field is a DATE field before applying the lock. You can see it quite clearly in this line:
If Fld.Type = wdFieldDate Then Fld.Locked = True
I suspect you locked the TOC by some other means.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote