Click event in the document

P

Peter Lingo

Hello

I put in a document some formfield with text to be able that an event can be
fired with the mouse. But there is a double-click needed. Does any field or
object exist which is for the user a word in the document (with content) and
when he clicks on this object an event is fired?

Thanks Peter
 
C

Chad DeMeyer

Peter,

It can be simulated. Look up MACROBUTTON fields in Word help. In your
ThisDocument module, you need an AutoOpen macro:

Sub AutoOpen()
Options.ButtonFieldClicks = 1
End Sub

This makes it so that a MACROBUTTON field responds to a single click instead
of the default double-click.

Regards,
Chad
 

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