+ Reply to Thread
Results 1 to 1 of 1

Workbook macro to automatically create a custom menu button and assign a macro to it.

  1. #1
    Registered User
    Join Date
    01-08-2013
    Location
    Auckland
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Workbook macro to automatically create a custom menu button and assign a macro to it.

    Hi there,

    I'm currently trying to put together a macro that will create a custom menu button, assign a macro to it (which will make my userform appear) and then a separate macro that will delete the custom button when the workbook closes. The second macro is so that the custom button appears only in this specific workbook (I hope that's the right way to do it).

    My problem is that I can't seem to figure out the code that will attach my macro to the button. Recording the manual process doesn't seem to record any code. Currently in the workbook I have the code:

    Please Login or Register  to view this content.
    This successfully adds the button. I'm guessing it's only one or two lines of code that I'm after. If anyone can help it would be greatly appreciated :D

    Gareth
    Last edited by grazz123; 01-20-2013 at 06:17 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1