Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating standard object

Status
Not open for further replies.

WC

Programmer
Sep 19, 2001
9
SG
i'm trying to write a function that will accpect a parent and a few variable and then the function will then create afew shape(during runtime) with parent that was given.
Below is the code i written but i keep have a error so someone out there pls help me.

Public Sub picturebar(temp As Form, i As Integer)
Dim y As Shape
set y = shape1
y.Visible = True
y.Parent = temp
y.Top = 300
y.Left = 300
y.Width = 500
y.Height = 500

End Sub


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top