Reproduce functionality of macro button into a second worksheet

Posted on 2011-04-25
Last Modified: 2012-05-11
 I have a complicated Excel workbook that I use to track goals, projects, tasks and such.  
   The normal starting point for creating a new task is to click on a macro-associated button labeled "Show Option."  With that, I can pick the Goal from a list of existing goals, Project from an existing list of projects associated with that Goal and then from a list of Milestones associated with that Project.  From there, I can enter the Status, Due Date, Task Description, Time Estimate and so forth for that Task.
   If I want to create a new goal, I can click a button to "Add new Goal, Project & Milestone/Client."  In any case, the results of using the "Show Option" button puts the resulting values into the worksheet called "Short Term."
   The enhancement I'm looking for is to have the same functionality triggered by the "Show Option" button to be available within the "Someday" worksheet.  That's a worksheet where I can enter tasks that are not current, but which I want to capture for future consideration.
   I've attached the current workbook for your use.
   Thanks for your consideration.
Question by:coachjim
    LVL 41

    Accepted Solution

    1.  Recoded range names, ActualStatus and Task, so that they were scoped in the ShortTerm Tab.
    2.  Then, created new range names, ActualStatus and Task, that were scoped in Someday Tab.
    3.  Then, copied the Worksheet_Change() event from ShortTerm tab codepage, to the Someday tab codepage (I'm assuming you wanted the same functionality, here, as well).
    4.  Then, I searched all the code for specific sheet references to ShortTerm tab.  I found that UserForm 1 & 2 makes changes to ShortTerm tab - I changed this to "ActiveSheet" instead
    5.  I copied the command button over to the Someday Tab from the ShortTerm tab.

    I then tested and seems to work!

    See attached and enjoy!

    LVL 2

    Author Closing Comment

    Artful solution.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now