Hello Laurent,

Laurent Godard schrieb:
HI

I have made a dialogue box with 20 textfields named textfield1 ... textfield20. When clicking into any of these textfileds, a single macro shall be called, which should do something depending on the name of the calling textfield, (a msgbox which displays the name of the textfield would do as an example).


add a parameter to your macro
sub myResponder(event)

in the event object, you will find all the suitable information
(use XRay to dig into it)

Thanks a lot: it worked, and after some "digging" I managed my piece of code:

sub myResponder(event)
        myTFname=event.source.model.name
end sub

--
freundlich grüßt
Gisbert

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to