Quote Originally Posted by moeur
Make sure all the code is in the form and not a module.
I have created an userform and commandbutton. The code is inside this userform. Now writes me an error: "Method or data member not found" at the line:
cc.hwndOwner = Me.hwnd

I have tryed to write me. again, but VB is not offering me hwnd.