![]() |
#7
|
||||
|
||||
![]()
Hi umesh,
The following macro will lock all DATE fields in the document. Code:
Sub LockDates() Dim Fld As Field, Rng As Range For Each Rng In ActiveDocument.StoryRanges For Each Fld In Rng.Fields If Fld.Type = wdFieldDate Then Fld.Locked = True Next Next End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word 2010 - DOCX File with fields -> PDF with fields | senglory | Word | 2 | 03-27-2012 10:10 AM |
![]() |
ketanco | Project | 1 | 02-08-2012 02:20 PM |
30+ days Variable Day Date Calculations via Fields | ztag | Word | 2 | 01-06-2012 11:12 AM |
new appointment date always reverts back to today's date | msills | Outlook | 0 | 08-24-2007 08:57 AM |
![]() |
promark | Outlook | 1 | 12-23-2005 07:21 AM |