Gerald Ray was telling us:
Gerald Ray nous racontait que :
There are no error messages, the code simply does not appear to
execute. In Word XP but it does in Word 2K3.
I remember hearing about cases where the ActiveX control changed names when
used across versions in XP.
In design mode, right click on a checkbox control and choose "Code" and see
what names is given to the sub you get to. Is it still CheckBox2? It is
often more reliable to give a name to the control and not let Word defaults
to a standard names for ActiveX controls.
Or, put a Stop command at the top of the code to see if the code gets
executed at all or not.
Personally, I avoid them like the pest!
See what Cindy Meister (Word MVP) has to say about ActiveX controls:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnword2k2/html/odc_activeX.asp
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org