doubleclicking on field Fill-in

J

Johan Tigchelaar

Hello,
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 use the function UpdateAllFields, 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.
Can anyone help me with the VBA-code for changing a Fill-
in field by doubleclicking on it?


greetings

Johan
 
C

Cindy M -WordMVP-

Hi Johan,

Well, if this is NOT Word 97 (you should remember to mention
the version of Word), then there is a WindowBeforeDoubleClick
event you could use. Since you say you're a beginner, I'm not
sure this is the right place for you to start :) But look
that up in the VB Help and see how far you get running a
macro when you double-click anywhere in a document.

If you get that to work, then you need to search the word.vba
newsgroups (probably in .general) for a posting from Peter
Hewitt (last couple of weeks, as I recall) with macro code to
determine whether the selection is within a field.
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 use the function UpdateAllFields, 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.
Can anyone help me with the VBA-code for changing a Fill-
in field by doubleclicking on it?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun
8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 

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