#1
|
|||
|
|||
Field removal from template
Hi Guys
I was wondering if anyone could help me, I've created a word template in 2003 with fields that link back to another document. When I create a new document from the template, I'd like the fields to be removed and have that document not update any further. Could anyone advise how to do this? I had hoped it would be a built in feature, but both Word and the interweb are being somewhat less than helpful. I'm adept with VBA in Excel, but Word is an entirely different thing! Any help would be appreciated. Phelony |
#2
|
|||
|
|||
Fixed it myself
Dim doc As Document Dim fld As Field Set doc = ActiveDocument For Each fld In doc.Fields fld.Select ‘this is the field type, you can adjust this to suit the fields you are using, but they have to be ‘named individually, this might mean running several variations of this macro. If fld.Type = wdFieldIncludeText Then fld.Locked = True End If Next Set fld = Nothing Set doc = Nothing |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
creating a custom field and using it in a template | Skarab | Word | 3 | 10-24-2011 03:33 AM |
background graphic removal | taffyevo | PowerPoint | 0 | 08-16-2011 06:36 AM |
Vendor Says Office 2010 requires 2007 removal | awang429 | Office | 2 | 08-15-2011 01:15 AM |
Office 2007 removal and re-installation of previous version | Buckeyegator | Office | 1 | 03-25-2010 09:15 PM |
Word field stops working on template launch | anakeimai | Word | 0 | 09-10-2009 08:49 AM |