Adding a "Find" button


Posted by Cory on April 13, 2001 6:39 AM

I've been adding code to my buttons by recording a macro, opening it up in edit mode, then copying and pasting its code into a button's code box. This seems to work for most things, but I can't get it to work for a "find" button. Can someone help?

Posted by Ivan Moala on April 13, 2001 7:41 AM

Sub Find()
CommandBars.FindControl(Id:=1849).Execute
End Sub


Ivan



Posted by Cory on April 13, 2001 9:36 AM

Thanks for the help, Ivan! That one's been bugging me for weeks...

Cory