Hello,
I am a beginner in VBA.
I am trying to avoid creating processbooks using the mouse to automatize and standardize the creation. For the standardize part, it is going ok but I can't manage to draw object from VBA editor.
At the moment, I am creating text, ..., and rectangle objects with the mouse to then call the objects with VBA. I would like to avoid this process and create my object in modules like sub draw_rectangle(),...
I have been searching on the internet and I have found this
http://msdn.microsoft.co...fzwyx%28v=vs.80%29.aspx
I can't make that :Private Sub Form_Paint()
' Draw a solid black line 200 twips from the top of the form.
Line (0, 200) - (ScaleWidth, 200), vbBlack
End Subor that :Private Sub Form1_Paint(ByVal sender As Object, ByVal e _
As System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
' Draw a solid black line 25 pixels from the top of the form.
e.Graphics.DrawLine(Pens.Black, 0, 25, Me.Width, 25)
End Sub workI am using VBA 6.3
I have imported System, System_Drawing & System_Windows_Form librairies. Do I miss some librairies ?
Well, I would gladly appreciate any help.
Let me know if my explanation are not clear.
Thank you in advance,
Rémi