Reference Label from TextBox
"Rumplestiltskin" wrote in message
...
On Sun, 20 Jul 2008 17:28:33 +0100, "Peter T" <peter_t@discussions
wrote:
I have even less idea of what you are doing now than I had before. Anyway
just this bit
Now, all I need is the method to
access the userform from the class.
Assuming you mean you want to reference the userform that contains your
the
textbox which is as referenced by Public WithEvents txtBox, try
txtBox.Parent
Regards,
Peter T
Thank for the input, but that didn't work. What I require is a method
to reference the currently active UserForm.
Your routine SetLabel is called by the keypress event of a textbox on a
form. Surely the form containing the textbox is the "currently active
UserForm". That being the case txtBox.Parent will reference the form.
If that's not the case you really need to explain what you are doing
otherwise to assist is just a guessing game.
Regards,
Peter T
|