#1
|
|||
|
|||
How to lock fields with vba just in header, not in footer
Hello, as you know, in large documents that have variable headers [STYLEREF], Word becomes very slow, so the solution is to lock the fields, and after that open them (close to printing, etc.).
I do it with the command: Code:
ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).Range.Fields.Locked = False ActiveDocument.Sections(1).Headers(wdHeaderFooterEvenPages).Range.Fields.Locked = False Thanks |
Tags |
headers, vba |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding text to the header and footer without removing all other content in the header and footer | digitalelise | Word VBA | 2 | 10-23-2019 02:58 AM |
Restrict editing options to lock a picture in header | scrayne | Word | 1 | 07-26-2017 08:23 PM |
Header and footer aligned in the footer area | ashiqghfr | Word | 2 | 07-23-2015 01:14 AM |
How to Lock header numbers? | HenDrake | Word | 3 | 07-20-2011 02:11 AM |
Different Header but same Footer | Karthick | Word | 1 | 11-12-2010 09:08 AM |