• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Help with code to get a Screenshot from an userform

I have been wondering the following thing:
Could it be possible to find a code to get a screenshot of any Userform?
Is this possible?

Thanks so much in advance.
 
Wow, that is what I call a great-amazing super fast answering service. Let me check to apply this:
Application.Dialogs(xlDialogPrinterSetup).Show
Userform1.PrintForm
I will keep you posted shortly.
 
Now it shows me Printer Setup, I chose the option that says Microsoft Print to PDF, but once again, it sends to the printer.
 

Attachments

  • Capture.JPG
    Capture.JPG
    23.3 KB · Views: 6
Let me share this that one friend of mine taught me a while ago and it worked:

Code:
Private Sub CommandButton3_Click()
Application.SendKeys "(%{1068})"
DoEvents
Unload Me
End Sub

The only thing is that Application.SendKeys "{NUMLock}", disables the numeric lock key. I just a matter of pressing again the NUMlock key. But I don´t care about it. I can just press it NUMlock key again!
 
Is there´s a way to activate the NUMlock key again? I will be more than glad, but if it can´t be possible, no problem. Thank you so much for all your amazing help.
 
Back
Top