May I make a suggestion? If you put the “export to Excel” code in the AfterRefresh event, you won’t need a special button. If the user presses the built-in Refresh button, the export would still happen automatically.
That said, if you are looking for examples to create toolbars / menus, you can look at this utility.
Dwayne Hoffpauir (BOB member since 2002-09-19)