John Walkenbach shows here how to do this for buttons. Same idea,
http://www.j-walk.com/ss/excel/tips/tip44.htm
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. -
http://PeltierTech.com
_______
"Sam Kuo" wrote in message
...
Hi all,
I have 10 textboxes (namely txtPost1, txtPost2, ..., txtPost10) which I
want
to assign the event procedure below to. I just wonder if there might be a
short way to do than copy and paste the code 10 times?
Private Sub txtPost1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
' Update work duration (by calling macro UpdateDuration)
UpdateDuration ("Post")
End Sub