double click to update Fill-in field

J

Johan

Hello all,

I am looking for a way to update Fill-in fields by
doubleclicking on them instead of using the update field
command by clicking the right mouse button.

I have a document with some Fill-in fields. This document
is about 10 pages long and every page contains one or more
Fill-in fields.

I know I can also use the function UpdateAllFields instead
off the right mouse button. But then I have to go through
all the Fill-in fields when I only want to change, for
example, the 11th Fill-in field in the document.

I am just a beginner with VBA-coding so I don't know a lot
about putting the above problem in a code. I know it has
something to do with the WindowBeforeDoubleClick, but the
VBA-help doesn't help me out that much.
Can anyone help me with the VBA-code for updating/changing
a Fill-in field by doubleclicking on it?

I am using word 2002
 
C

Chad DeMeyer

Johan,

You should be able to nest your fill-in field inside a macrobutton field.
Example:

{ MACROBUTTON "UpdateMe" {FILLIN "Prompt for info:" \d "Double-click to set
text" } }

Then put the UpdateMe macro code into your document or template:

Sub UpdateMe()
Selection.Fields.Update
End Sub

If you need more guidance on what to do with the code, please refer to
http://www.gmayor.com/installing_macro.htm

Regards,
Chad DeMeyer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top