Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2005

Tip: Looking for answers? Try searching our database.

altering field codes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fred Kruger - 26 Aug 2005 16:25 GMT
I write word templates for my company and up until recently we used windows
NT with office 97.

I have  image in about 1000 documents which is linked rather than saved in
the template to a specific image located in the Microsoft office\ clipart\wyp
directory.

My company have now started to by machines with windows xp and office xp on
which no loger has the Microsoft office\ clipart\ folder but multi media
folder instead.

When we migrated from windows 3.11 and word 6 on the new NT machines we had
to put in the msoffice\clipart directory so the image appeared in the old
forms.

I dont want to have to do this this time round as it gets complicated and
believe I maybe able to do the switching withcode so heres what i wish to do
-

I can check to see which version of word is being used so i can set the
appropriate directorty where to look for the image however how do I edit the
field code for the image to allow this can anyone.

the field code i have reads - {INCLUDEPICTURE"C:\\Program Files\\Microsoft
Office\\Clipart\\wyp\\SIMPLAND.TIFF"\*MERGEFORMAT\d}

How do I edit this field code in VBA

Cheers in anticipation
Anne Troy - 26 Aug 2005 17:12 GMT
Fred, I think you can do this...
Record a macro that:
Alt+F9 to turn on field codes.
Use Find/Replace to change the path.
Run the macro on all files: http://vbaexpress.com/kb/getarticle.php?kb_id=76
Alt+F9 to turn off field codes.
************
Anne Troy
www.OfficeArticles.com

>I write word templates for my company and up until recently we used windows
> NT with office 97.
[quoted text clipped - 30 lines]
>
> Cheers in anticipation
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.