I have a working button code.
I would like to call same by clicking menu list item.
how do I do it?
Printable View
I have a working button code.
I would like to call same by clicking menu list item.
how do I do it?
VB Code:
Private Sub mnuFileNew_Click() Command1_Click End Sub
:)
Edit Ha! Faster by three minutes! :D
Try this....
VB Code:
Private Sub YourMenu_Click() 'Call Working Button Code 'If the code is in the click event of a button try this MyButton_Click End Sub
You can also say....
VB Code:
Command1.Value = True
Though I know of no one else who does it like that :ehh:
I use the Value property to fire the click event.
But if you have code in any other events put them instead of Click, like:
VB Code:
Command1_KeyPress Command1_MouseDown
etc...
Ditto here. So Spajeoly you now know 2 people who do it that way. :bigyello:Quote:
Originally posted by brucevde
I use the Value property to fire the click event.