tags:

views:

427

answers:

2

I need to know how to add a custom, dynamic Autotext entry for Microsoft Word. I want to be able to Insert>Autotext>Header/Footer>"Last Friday" and have last Friday's date show up in the spot and keep it updated like inserting the Date Autotext updates each time the document is opened.

I have the VB code necessary to compute last Friday's date and return it as a String, but I am having trouble finding how to tie the function's output to a new Autotext entry.

It would also be acceptable to add a custom entry into the Insert>Field list as well.

+1  A: 

You may find this thread helpful: http://stackoverflow.com/questions/217821/how-can-i-build-word-fields-with-vba#218304

Remou
This might be getting me closer... FWIW I did try about 4 searches for my topic before posting...
Knobloch
+1  A: 

There is another thread here

http://www.tech-archive.net/Archive/Word/microsoft.public.word.vba.beginners/2007-02/msg00050.html

This might have a solution for you.

Toby Allen