[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Reproduce functionality of macro button into a second worksheet

Posted on 2011-04-25
2
Medium Priority
?
226 Views
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.
Jim-Earley-Focus-Plan.xlsm
0
Comment
Question by:coachjim
2 Comments
 
LVL 42

Accepted Solution

by:
dlmille earned 2000 total points
ID: 35464024
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!

Dave
Jim-Earley-Focus-Plan-r2.xlsm
0
 
LVL 2

Author Closing Comment

by:coachjim
ID: 35497150
Artful solution.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

834 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