Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-18-2011, 02:55 AM
Phelony Phelony is offline Field removal from template Windows XP Field removal from template Office 2003
Novice
Field removal from template
 
Join Date: Oct 2011
Posts: 2
Phelony is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 10-18-2011, 03:28 AM
Phelony Phelony is offline Field removal from template Windows XP Field removal from template Office 2003
Novice
Field removal from template
 
Join Date: Oct 2011
Posts: 2
Phelony is on a distinguished road
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Field removal from template 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
Field removal from template Vendor Says Office 2010 requires 2007 removal awang429 Office 2 08-15-2011 01:15 AM
Field removal from template 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

Other Forums: Access Forums

All times are GMT -7. The time now is 03:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft