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
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