P
PraxisPete
Hi Everybody, I am using Excel 2002 and I have only been using vb for a short
while
I need to draw arcs and I have Pick-up this code on the net which does not
run. The error is Run-time error ‘424’: Object required. I think its some
thing to do with Form1 but I do not understand about Forms and I cannot find
anything about forms in my ref books apart from Userforms.
Can somebody please explain?
Many Thanks
Private Declare Function Arc Lib "gdi32" (ByVal hdc As Long, ByVal X1 As
Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long,
ByVal Y3 As Long, _
ByVal X4 As Long, ByVal Y4 As Long) As Long
Private Sub Form_Load()
Dim rval As Long
'play about with the values
rval = Arc(Form1.hdc, 100, 450, 300, 10, 250, 100, 100, 150)
End Sub
while
I need to draw arcs and I have Pick-up this code on the net which does not
run. The error is Run-time error ‘424’: Object required. I think its some
thing to do with Form1 but I do not understand about Forms and I cannot find
anything about forms in my ref books apart from Userforms.
Can somebody please explain?
Many Thanks
Private Declare Function Arc Lib "gdi32" (ByVal hdc As Long, ByVal X1 As
Long, _
ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long,
ByVal Y3 As Long, _
ByVal X4 As Long, ByVal Y4 As Long) As Long
Private Sub Form_Load()
Dim rval As Long
'play about with the values
rval = Arc(Form1.hdc, 100, 450, 300, 10, 250, 100, 100, 150)
End Sub