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
Maybe you should save one image with all the figures together.
Create an image. And duplicate it? And how can this be done? This is an interesting version
Draw each figure that will compose the set and save one image of all. But I think you'll have to do it in coreldraw and save a image of the set. My english is not so good, too.