J
Jing You
hi,
I want to use a frame in UserForm as parameter of a function like this:
Private Sub ShowFrame(ByRef F As MSForms.Frame)
F.Top = 10
End Sub
But when I call this procedure using the code:
ShowFrame(BasicFrame) 'BasicFrame is a Frame in UserForm
the compiler throws an exception to tell me the BasicFrame's type is
invalid.
Then I have tested several different type, like this:
Private Sub ShowFrame(ByRef F As Frame)
F.Top = 10
End Sub
Private Sub ShowFrame(ByRef F As Control)
F.Top = 10
End Sub
And they all doesn't work. What's wrong with the code?
Thanks,
Jing You
I want to use a frame in UserForm as parameter of a function like this:
Private Sub ShowFrame(ByRef F As MSForms.Frame)
F.Top = 10
End Sub
But when I call this procedure using the code:
ShowFrame(BasicFrame) 'BasicFrame is a Frame in UserForm
the compiler throws an exception to tell me the BasicFrame's type is
invalid.
Then I have tested several different type, like this:
Private Sub ShowFrame(ByRef F As Frame)
F.Top = 10
End Sub
Private Sub ShowFrame(ByRef F As Control)
F.Top = 10
End Sub
And they all doesn't work. What's wrong with the code?
Thanks,
Jing You