+ Reply to Thread
Results 1 to 5 of 5

How to keep track of changing teams without losing data.

  1. #1
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    How to keep track of changing teams without losing data.

    My employees are responsible for teams they monitor. Auditor 1 monitors Team1 (reps 1-13). Auditor 2 monitors Team2 (reps 14-23) AND Team3 (reps 24-34)

    I have a tracker sheet that in column A is the name of my employee who is responsible for that Rep. My issue is what happens if that Rep goes from Team3 to Team1. Right now I have to track that change and manually adjust column A. But when you are 100+ employees and team shifts are common, it is irksome. I need a way for the macro to look at the rep name and match it with the Employee name on my roster sheet.

    I hope that makes sense somewhat. The workbook should help.
    Attached Files Attached Files

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: How to keep track of changing teams without losing data.

    I played around with this and had several thoughts on using change_selection and change to manage the transfers, but had a difficult time distinguishing between when I selected a value to cut it and when I selected a cell to paste it. Also I had to add in error checking to make sure you didn't select more than one cell, select a blank cell or paste over an existing member. So then I thought to let you arrange it the way you wanted and give you a button tied to a macro to sort everything out. That still gives you the opportunity to lose a member either just by cutting and not pasting or pasting over. Also you could wind up with duplicate members.

    So I decided I needed the control that only forms can give. There is a button on the team sheet to launch the form. The form has two fields: Representative and Manager - both are combo boxes that are ultimately populated from the existing data. There is a helper sheet with some pivot tables on them to get the unique lists needed.

    Select the Representative you want to move. Select the Manager you want to move the representative to. Click on the Assign button. This action will move the representative both on the Teams Sheet and on the audit sheet. The program also does a lookup based on the selected manager to get the correct Auditor. The whole affair is topped off with sorting the Audit Tracker table. I think it is fairly bullet proof and won't let you make the mistakes the other methods allow.

    It's not exactly drag and drop. I'm not that good.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: How to keep track of changing teams without losing data.

    Thanks. That is really cool. How can I copy that over to a new spreadsheet? I tried dragging the form and two macros to my spreadsheet but I get a Range error.

    I think the biggest issue with something like this is recognizing who has changed teams. I receive a roster weekly that has the teams on it, but it doesn't list who moved. So each week is like a challenge of recognizing who, if anyone moved.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: How to keep track of changing teams without losing data.

    You could possibly export and re-import the modules, but even then you'd have to assure that the sheet names remain the same and make sure you have the named ranges, List_Manager and List_Rep established.

    It may be a lot easier to remove the data on the Audit Tracker table and then copy/paste your data into it.

    Here is more information on tables: http://www.utteraccess.com/wiki/Tables_in_Excel.

    In the attached, I threw in a module to clear the table and associated it with a button on the Audit Tracker sheet.

    Once you paste in your new data (or edit the Audit Tracker Table for that matter), refresh the pivot tables. Data->Refresh All should do this or you can right click on either table and select the Refresh option from the menu.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    01-09-2016
    Location
    USA,USA
    MS-Off Ver
    2016
    Posts
    1,192

    Re: How to keep track of changing teams without losing data.

    Yeah sheets and all are the same. I just delete personal data off my sample. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Command Buttons changing Name/Losing applicable code
    By Coxy347 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-01-2019, 12:43 AM
  2. Replies: 0
    Last Post: 07-13-2017, 12:23 PM
  3. PivotTable cells losing colour when changing filter/refreshing.
    By X82 in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 03-16-2017, 09:05 AM
  4. Replies: 2
    Last Post: 10-22-2013, 11:41 AM
  5. [SOLVED] Two columns of teams, count the number of times the teams meet?
    By tpe102 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-04-2013, 09:21 AM
  6. Changing time format without losing data
    By lajones3 in forum Excel General
    Replies: 19
    Last Post: 11-21-2006, 05:43 PM
  7. [SOLVED] Changing column size w/o losing text
    By Carrie in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-13-2005, 04:06 PM

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