• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Another form problem

robh0409

New Member
hi there


i am looking at using a button on the home page of my work book and wanted one to open a form that i have created but cannot figure out the syntax for it.

so far i have this

[pre]
Code:
Public Sub callform()
openform
End Sub
and this

Public Sub callform()
Run ("UserForm_Initialize")
End Sub
[/pre]
any ideas?


Rob
 
The line is:

Code:
UserForm1.Show


The initialize macro would be within the UserForm1 module.
 
Rob


Sub OpenMyUserform()

UserForm1.Show

End Sub


On opening the Userform Initialise routine will execute and this is where you should set all the userforms default control values


Secondly, there is no need to post two similar questions here.

So I have deleted the other post and shifted my response here, even though it is the same as Lukes
 
Back
Top