Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Forms

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms Brenda New Users to Excel 1 April 27th 05 10:42 PM
RefEdits and normal forms / forms in a DLL David Welch Excel Programming 0 December 1st 04 03:49 PM
Forms that open from forms Azza Excel Programming 1 October 12th 04 10:54 PM
Calling Forms from Forms - Exit problems Stuart[_5_] Excel Programming 3 May 25th 04 06:50 AM
forms Steve Ketchum Excel Programming 0 October 8th 03 05:28 PM


All times are GMT +1. The time now is 08:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"