Simon, that looks exactly what I want, thanks.
I am not familiar with "CodeContextObject" and reading the help file was not that clear.
My interpretation is, whereas Me represents the object that currently has focus, CodeContextObject is the object in which that code resides. Is that correct?
peter