Hi. Please, I need help with the VBA. How to draw in UserForm? For example, I press a key and a rectangle (or line or circle) appears on the UserForm)
Sorry for my English
Hi. Your draw (rectangle, line or circle) is "image1" (a bitmap)
Try this:
Private Sub UserForm_Activate() 'when the form loads
Image1.Visible = False
End Sub
Private Sub UserForm_Click() 'when you click in the form
Image1.Visible = True
Thanks, but it's too easy. And I need something more. I want to draw a preview of my macro action. Such rectangles and lines will be many