Consulting

Page 2 of 2 FirstFirst 1 2
Results 21 to 22 of 22

Thread: At my wits end

  1. #21
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,728
    Location
    Quote Originally Posted by SamT View Post
    Delete those antique "Forms" style Buttons and replace them with new and improved "Control Toolbox" style Command Buttons.

    Right Click each CommandButton and choose "View Code" to create new CommandButton_Click Event Subs.

    Put the Original sort code into the new CommandButton_Click() Event Subs that were auto created in the Template Sheet's Code page. Note that if you use the Control's Property sub-menu to change the names before "View Code", those names will be reflected in the Event subs. The Control Name and the Sub Name must match.

    "Control Toolbox" Controls are identical to the Controls used when you create a UserForm. They and their code are integral to their container, whether copied or moved.
    That's what I did for the OP in the 'template tab' when I generated 'Master_v1' in post #17. The generated separate 'teacher' workbook's buttons are not linked to the source workbook
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  2. #22
    VBAX Regular
    Joined
    Jul 2015
    Posts
    34
    Location
    Sam,

    THANK YOU, so simple and works absolutely perfectly!!!! Woo hoo.

Posting Permissions

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