Consulting

Page 1 of 2 1 2 LastLast
Results 1 to 20 of 37

Thread: VBA code to transfer data to different workbooks

  1. #1

    VBA code to transfer data to different workbooks

    Hello, I really hope someone can help me out, I've been trying to figure this out for days. I'm really new to this and am trying to understand and learn but also am in need of getting this to work asap. Below is what I am trying to do.

    I have Workbook 1 (Master log) needs to be able to send data from sheet 2 columns B through J to multiple workbooks (Workbook 2/employee 1's log) on sheet 1 of workbook 2 in those same columns (B-J) and I mean like 20 different ones workbooks eventually. There will be multiple Employee logs that will send data to the Master log according to specific sheets. For example the Master log will have 20 sheets, one for each employee, so employee 1's log (which we will reference as workbook 2) will send data to the Master log sheet 2 and Employee 2's log will send data to the Master log sheet 3. Then Workbook 2 (and all other employee workbooks) needs to be able to send data from sheet 1 Columns K through Q to Workbook 1 (Master log) to their specific sheets (example, employee 1 will send data to sheet 2 and employee 2 will send data to sheet 3) in columns K through Q as well.

    I also need a code to be able to get a code that can do the same type of thing but for rows instead of columns.


    Also I am pretty new to this and don't speak code yet. So having these---> () blank and expecting me to know what to put in there won't help because I genuinely don't know if something goes in there or not and I wouldn't know what to put so please try to dumb it down if possible.
    Thank you a TON if you can help me can help me!

    I have also created dummie workbooks so that you can see what I am trying to do as an example. I also have another big help question, but for right now this is definitely the most important thing to get to work for me.
    Attached Files Attached Files

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    To insure understanding, I am restating your requirements

    You have

    • WorkBook named "Master Log"
    • Where X = Number of employees
      • Master Log has 2 + x sheets
      • Sheet1.Name = "Master Log"
      • Sheet2.Name = Reference
      • Sheets(n thru X +2) are named in pattern Employee(n).Name

    • You also have X (+ exEmployee.Count) Workbooks also named Employee(n).Name
      • Workbook Employee(n).Name has one sheet also named Employee(n).Name.


    You need to perform

    • Transfer data from Certain Ranges in
      1. Book Master Log, Sheet Employee(n).Name
        • to Book Employee(n).Name, Sheet Employee(n).Name

      2. Book Employee(n).Name
        • to Book Master Log, Sheet Employee(n).Name


    We need to know

    • Where everything is stored or saved to.
    • what triggers each transfer
      • Click a button,
      • Change Worksheets in master Log
      • Open a Employee(n).Name Book
      • Use a Menu selected Macro
      • Some other event or selection

    • What happens to books Master Log and Employee(n).Name at the end of the fiscal period
    • What happens to books Master Log and Employee(n).Name at the beginning of the next fiscal period


    Code requirements
    • All Items with Name = Employee(n).Name are identically named
    • A list in Book Master Log, Sheet Reference of current Employee(n) Names, as ex-Employee Books and records must be kept for at least the end of the Fiscal period .
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    If any new data in the workbooks must be manually entered, I strongly suggest that you use Custom UserForms to perform all actions required.

    For info on UserForms, open the VBA Editor (VBE,) and insure that the Project Explorer is visible, (Press F2.)

    Right click on ThisWorkbook in the Project Explorer window, and select Insert UserForm.

    Click the new UserForm and press F1. In XP you would use the See Also option of this Help window
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  4. #4

    Responses

    Quote Originally Posted by SamT View Post
    To insure understanding, I am restating your requirements

    You have

    • WorkBook named "Master Log"
    • Where X = Number of employees
      • Master Log has 2 + x sheets
      • Sheet1.Name = "Master Log"
      • Sheet2.Name = Reference
      • Sheets(n thru X +2) are named in pattern Employee(n).Name

    • You also have X (+ exEmployee.Count) Workbooks also named Employee(n).Name
      • Workbook Employee(n).Name has one sheet also named Employee(n).Name.

    • Yes all of this is on point


    You need to perform

    • Transfer data from Certain Ranges in
      1. Book Master Log, Sheet Employee(n).Name
        • to Book Employee(n).Name, Sheet Employee(n).Name

      2. Book Employee(n).Name
        • to Book Master Log, Sheet Employee(n).Name
        • Yes this is all on point


    We need to know

    • Where everything is stored or saved to.
    • Everything is stored and saved to on the same network and in the same folder, The master may be moved to another folder but all workbooks will be saved in the same S: drive.
    • what triggers each transfer
      • Click a button,
      • Change Worksheets in master Log
      • Open a Employee(n).Name Book
      • Use a Menu selected Macro
      • Some other event or selection
      • I'm not 100% sure what you mean by this but I'll explain how the work is completed and what the workers and supervisors do: The supervisors will be assigning cases to each employee in the master log and enter that data on the master log in their corresponding employee's sheet/tab. The data entered will be in columns B-J.
      • Then once the employees see their assignments in their own workbook on sheet1 they will complete the case and put their updates to those specific cases on columns K-Q, that data entered needs to be communicated to the master log in the employee's corresponding sheet/tab.

    • What happens to books Master Log and Employee(n).Name at the end of the fiscal period
    • At the end of the fiscal year the master log will either stay in the same Srive, moved to another folder, but in the same drive or deleted. The employees may save their logs, or may delete them.
    • What happens to books Master Log and Employee(n).Name at the beginning of the next fiscal period
    • At the beginning of the next fiscal year brand new workbooks are created from scratch usually. Which is why it would be great to know this code to be able to make multiple workbooks in the future.


    Code requirements
    • All Items with Name = Employee(n).Name are identically named
    • Yes, all employee workbooks are named after the employee and they all have the exact same listed columns and will be entering similar data.
    • A list in Book Master Log, Sheet Reference of current Employee(n) Names, as ex-Employee Books and records must be kept for at least the end of the Fiscal period .
    • Yes, we also be able to remove or add new employees to the master log and create new employee sheets and workbooks just in case employees leave sometime through the fiscal year.

    Thank you SO much if you can help me.

  5. #5
    Yes there is constantly new data being manually entered, especially when the supervisors enter new assignments and when employees enter the data updates to those new assignments. I have its where C:\Users\Dummy\Desktop\[Play Employee.xlsm]Employee 1'!D4 I have this formula in the individual cells but this isn't efficient enough, I would like the entire columns to communicate not individual cells.

    I also did the userforms but I have no idea what it does.

    Thank you again.

  6. #6
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I think I see what you need.

    As a "Project Designer," I suggest the following scenario

    In a location of your choice:
    Folders and Files

    • A folder named Templates
      • Restricted to Adminstor (and Supervisors?)
      • Template_Supervisor.xlsm
        • w/UserForm to perform Supervisor's duties.

      • Template_Employee.xlsm
        • w/UserForm to perform Employee's duties.
        • Sheet 1 is named Assignments in all Employee's books

      • Template_MasterLog.xlsx
      • Copy of Administrator's FiscalEnd.xlsm
        • w/UserForm to perform admin tasks.
          • Can also include Supervisor's duties UserForm

    • A folder named Folder Assignments
      • Supervisors Save Employee books here
      • Employees Open their workbooks from here

    • A folder named Folder Returned
      • Employees Save their workbook to here
      • Supervisors Open Employee books from here

    • A folder named Folder Archives
      • Should be retricted to Supervisors and Administrators
      • Stores Old Employee books, Named fiscally

    • A folder named Folder MasterLog
      • Stores MasterLog.xlsx Book(s) (Old Logbooks named Fiscally)

    • Supervisor(s) Workbook(s) [Copy(ies) of Template_Supervisor.xlsm]
    • Administrator's FiscalEnd.xlsm


    The Fiscal Ends Tasks
    • Employees open, complete and save all Employees workbooks to Returned. Do not reopen till OK'ed.
    • Supervisors Open all Employee's books, Update MasterLog, Save all Employee's books to Assignments
    • Administrator Uses FiscalEnd.xlsm to
      • Rename and move all used Workbooks to Archives
      • Create new MasterLog.xlsx
      • Create new Supervisor('s) Workbook(s) from Template_Supervisor.xlsm in Templates
      • Create new Employee books From Template book in Templates, using Employee list from list in a Reference Sheet

    • Tasks can be restricted to particular time frames. Or not. Your choice.


    UserForm notes

    • All UserForms
      • Follow all folder Restrictions
      • Prevents User from viewing actual worksheets



    • Employees UserForm
      • Only shows incomplete assignments
      • Ability to select specific assignment
      • Commands and inputs to perform all Data entry
      • Save book command
      • Send to Supervisor command
      • ? Recover and edit book from Returned Folder ?
      • Edit command to edit all entries on all assignments since last "send to supervisor" event



    • Supervisor(s) UserForm(s)
      • Ability to select specific Employee Book
      • Commands and inputs to perform all Data entry
      • Send to Employee command
      • Edit command to edit all all Books till in Folder Assignments
      • Can View all worksheets in Employee's books and Master_Log book
      • ? Can delete completed Assignments from Employee's books ?



    • Administrator UserForm
      • Can include all or some Employees forms abilities
      • Can include all or some Supervisor(s) forms abilities
      • All commands and inputs needed to perform all duties and tasks




    All Folder names and workbook names above are suggestions.
    All restrictions above are suggestions.

    This is an overall, upper level idea of the way it should done. We must agree on the exact structure of this level before we start coding if we want to get the project done in the fastest manner.

    The next approval will be the overall look and feel of the UserForms. Believe it or not, the actual coding will probable take less real time than the rest of the project.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  7. #7
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    what triggers each transfer

    • I'm not 100% sure what you mean by this but I'll explain how the work is completed and what the workers and supervisors do:
    That explanation is what I needed

    A VBA Procedure, (a hand written Macro) won't run by itself, it must be "Triggered." In the Scenario I just posted, the main Procedures run when the workbooks are Opened. Thereafter, others are triggered when the User performs certain actions in the UserForms.

    I would change that Scenario in a couple of ways.

    The Employee's .xlsm workbooks would all be the same and would only have the code and UserForms. They would even have the same name and would be stored on the user's computer(s). Code can determine the Employee Name from the Computers Logon Screen. This would allow one user to log on to another's computer and continue working on his/her assignments.

    The data only files (.xlsx Assignments workbooks) that were passed back and forth with the supervisors would be identical to the "Play Employee.xlsx" book that you originally uploaded. I strongly suggest that all completed assignments be removed by the supervisor as soon as the data has been recorded in the MasterLog book for data security. It appears that you are in a high security workplace.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  8. #8
    I think I see what you're saying but I don't completely 100% understand it. Is there no way that a VBA code automatically runs once the workbook is open? The code that I have in there now automatically updates the master and employee logs but it's not VBA it's just a formula that is to a specific cell.

    I really like the idea of the workbooks being attached to the employee's windows login so that they can log into any computer, but the Master log needs to be able to be accessed by any supervisor due to there being multiple supervisors viewing and monitoring this workbook.

    What I don't think is there being so many folders, it kind of seems like too many workbooks and folders being created. At least that is the way I understood what you were saying, with regards to the folder assignments and folder returned. Unless I am just not understanding completely what you're saying.

    The supervisors don't technically need to be able to view the employee's workbook or make changes. I really am looking for the Master workbook (which the supervisors will access and add the assignments or make adjustments) to be able to communicate and send data to the employee's workbooks.

    I've attached the workbooks with the formulas I have now that I really like, but the problem I am having is that you can't delete a row because the formula is only for those cells, so the formula doesn't move or change when the row is deleted and since the formula is on only half of the master log and half of the employee's log, I have to open both logs to make the changes if I am reassigning cases.

    The formulas start on cells B2 in the employee's log and K2 in the master log.

    Hopefully this helps clarify what I am trying to achieve.
    Attached Files Attached Files

  9. #9
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I think that the way you re envisioning the system is that
    1. Each Employee has a workbook, (so that they can't see each other's cases?)
      1. They manually enter data into each cell on each row.

    2. All Supervisors share one master workbook, (So they can all monitor the master log sheet?)
      1. They manually enter data into each cell in each row.
      2. The VBA in the Master book transfers data from the Master into all the Employee books.

    3. At some point in time the Employee books have to be saved back a folder that the supervisors and employees all have access to.
      1. Randomly thru the workday
      2. In the evening at quitting time
        • The Supervisors have to work late
        • Or, the assignments must stop early
        • Or, the Supervisors must start early
        • Or The Employees must start the Assignments late.

    4. Any given workbook can only be opened for data manipulation by one User at a time.
    5. With one Master Log book
      1. The Master Log book is locked for use by any other Supervisor for the entire time it is already in use.
        • Only one Supervisor can assign cases at a time
        • Supervisors must coordinate with each other as to who is to open the Master Log book

    6. If using only one folder to store all workbooks
      1. All Employee books must be saved, (and no assignments worked on) by a set schedule
      2. OR, Employees must inform the supervisor when their book is not in use by them
        • Their Supervisor must inform them when their book is available.

    I had already considered the above before or while writing the suggested scenario in post #6 above.

    Is there no way that a VBA code automatically runs once the workbook is open? The code that I have in there now automatically updates the master and employee logs but it's not VBA it's just a formula that is to a specific cell.
    Yes. In fact that is what I plan to use to open and run the VBA UserForms I mentioned in the Suggested Scenario.
    but the Master log needs to be able to be accessed by any supervisor due to there being multiple supervisors viewing and monitoring this workbook.
    They need to all be able to use the Master Log, but in the Scenario, the Master Log would only contain Data. All VBA code, Including UserFOrms, would be in each Supervisor's own Workboo, which would not conatain any Assignment data.
    What I don't think is there being so many folders, it kind of seems like too many workbooks and folders being created
    The Assignments and Returned folders address issues 3 and 6 in the list above. the use of multiple Supervisor's books address issues 3, ,4 ,& 5 in the list above.
    The supervisors don't technically need to be able to view the employee's workbook or make changes.
    Ok, we won't code for that ablility
    I really am looking for the Master workbook (which the supervisors will access and add the assignments or make adjustments) to be able to communicate and send data to the employee's workbooks.
    Which is more important ? That the supervisors can send assignments to the Employees or that only one workbook in the system can do so. See issues 4 & 5 above.
    with the formulas I have now that I really like, but the problem I am having is that you can't delete a row because the formula is only for those cells, so the formula doesn't move or change when the row is deleted
    That is not an issue when using VBA to handle the data.
    since the formula is on only half of the master log and half of the  employee's log, I have to open both logs to make the changes if I am  reassigning cases.
    The Scenario in post # 6 already addresses those issues.
    In the Post #6 Scenario:

    From the view point of the Employee:
    When they open their Assignment workbook, A Data Entry Form is displayed with all open assignments listed. When they click an Assignment in the list (by name, date/time, case number, or however you want them listed.)

    All pertinent information in re that case is magically displayed in the most convenient layout for their work. While entering dfate, sometimes they just click a button and the pertinent value is automatically entered, sometimes they select a value from a list, and sometimes they have to actually type in a value.

    At the end of their work on a case, the click a button named Done or one named Next Case, or even just click another name in the List of Cases.

    If there are no more cases in the list, they click a button name Refresh and like magic, the list fills up again. at the end of the day, they click a button named Close Workbook or Exit.

    From a Supervisors Viewpoint:
    When he opens her Supervisor Workbook, a "Control Panel" magically appears where he can select to View Master Log, or Make Assignments.

    When she selects Make Assignments, a Data Entry Form appears with a list of all employees he is responsible for. There is also a button named View all Employees, (this allows any Supervsor at that computer to make assignments for any Employee.)

    She then selects an Employee from the list and a Data Entry form appears that operates just like the one in the Employee's Assignment book.

    When done with that Employee, he can click one of several buttons, Save, Close, Exit, Next Employee, Back to Control Panel, View Master Log, or as you want.

    From the viewpoint of the Project Designer:
    All UserForms shall be designed from the viewpoints of the User and the Business goals. Period.

    Make the Users tasks as easy and simple as possible. Accomplish all the Businesses' goals, include preventing as many preventable data entry errors as possible.

    Please keep your issue and ideas coming. We need to keep this up until we are both happy.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  10. #10
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Stop thinking about how your Master Log workbook should work and instead think about what the system must accomplish for your office.

    An experienced Project Designer can quickly envision the outline of a system the will do what any office needs done.

    Imagine how long it would take you to teach me to do your job as well as you can do it?

    What a Project Designer is good at is to take the businesses requirements and work and data flows and creating a system that is optimized for those. A good PD also has a good knowledge of computer Users in general. This is important because the Users are the heart of any system.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  11. #11
    You addressed all of my concerns. I understand that only one supervisor can be on at a time to enter updates and adjust the master log and that is fine. Everything else seems to look good. Thank you so much for your help!

  12. #12
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I understand that only one supervisor can be on at a time to enter updates and adjust the master log and that is fine.
    Not quite true. Notice that in my last post in re Supervisor's Viewpoint, I did not mention any wait time. That was deliberate.

    The way VBA does things, it will use a Read Only copy of Master Log to enter all data, then check if Master Log is Locked, if not then open master Log, update it from the copy and close it. that entire process will only take a few seconds. The supervisors will rarely experience any delays let alone actually notice them.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  13. #13
    Oh okay, well then that works perfect!

  14. #14
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    The next step is up to you.

    Watch or better yet, video an Employee while they start and complete an assignment using the current system. Do this with three Employees.

    Carefully analyze the order in which they perform the steps

    Repeat for three supervisors.

    That is very important to making the best UserForms for workplace efficiency and User comfort. The three or four hours it takes you (or a minion ) to do the note taking/recordings will pay for itself in less than one fiscal quarter. It probably will prevent us from having to redo any workbooks and UserForms because we got it right the first time.

    Show us those analyses.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  15. #15

    Smile

    I actually know the exact steps both would take.

    The Employee:

    Once cases are assigned, the worker will go to their log and usually just clear the cases for documents and narrate any documents that are still needed. Once they do that and place comments next to each assignment, they actually send a request form which triggers the first response/action of the case. The employee will then change the status cell in the column titled "status" (which has the dispositions in a drop down) and select 1st 10 day as well as enter the date in the lst 10 day column. This repeats for the 2nd 10 day status.

    If all documents are received and the employee can approve the case the status will then be approved. Each case can potentially be on the employee's log with the status changed up to 5 times, but usually 4, so the employee needs to be able to monitor the cases and do multiple status changes and change the comments in the comments column as well. Assignments are 100% completed once a case is approved or denied, however an employee must still be able to make any changes to those cells which the assignments are completed due to changes sometimes occuring.

    Everytime an employee touches an assignment and does some sort of work on it, they must enter an action date in the action date column. Data is entered in the zip code usually at whatever time the employee feels to enter it, but it must be entered by the time the assignment is completed. The data for the bank column is entered once the assignment is completed and may change, may not.

    The Supervisor:

    The supervisors periodically will assign work to the employees as they receive them. When a supervisor is given the assignments, they will either spread them out to each employee or just assign all those cases to 1 employee. Once in the employee's tab they enter the employee's worker number, their name, the case ID, and sometimes there are two with two columns, the applications date, the date assigned to the employee and the case first and last name.

    Tricky part is when supervisors need to reassign cases. For example an employee is not doing very well with their assignments and they are really behind, supervisors may take the assignments that are still in pending status (usually the 1st and 2nd 10 day cases) and give them to other employees to complete. Those cases that are chosen are usually at random. Another example is if an employee leaves to another department and their cases need to be reassigned to the current employees. These are really the only things supervisors will be doing to the master log.

    The thing that supervisors need and is very important is the tracking of the numbers, like the tracking tool I have in the Master log in the first tab. They need to be able to monitor every employee's numbers in real time, or at least once an employee saves their workbook and it updates the master's stats.

    The one thing I don't have one there and would love to incorporate in this workbook is a tracking tool that can track the status's of the assignments by months. For example, it is important for us to monitor how quickly assignments with application dates in the month of January are completed. So the tracking tool I have now only tracks the overall assignment load of all the employees, but I would like a tracking tool that can also do it by application month's, if that makes sense.



    Also another issue that I am currently having, and I'm not sure if this will be a problem with the design you are creating, is that because the individual cells have reference formulas the search function, sort function, and copy of the text doesn't work because the cells have a formula and not the actual text and that can really impact an employee's work. If we can get that function to work and still be able to assign and monitor the assignments correctly that would be great.

    Hope this all helps. Thank you

  16. #16
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    About "The Employee:"

    First Paragraph:
    I am looking at Play Employee.xlsx right now and I don't see any column for any 10 Day status.

    You said, "the worker will go to their log and usually just clear the cases for documents and narrate any documents that are still needed." What do you exactly mean by "Their log?" No Document columns are in the Play Employees workbook. By "Narrate" do you mean they are speaking?

    You said, "select 1st 10 day as well as enter the date in the lst 10 day column." That is two actions and implies that there are some multiple of two more columns, which I don't see.

    Second Paragraph:
    "however an employee must still be able to make any changes to those cells which the assignments are completed due to changes sometimes occurring." Are those changes made by the Supervisor and that assignment resent to the Employee. IOW, Who is the first to know about the changes, the Supervisor or the Employee?

    Third Paragraph:
    "Every time an employee touches an assignment and does some sort of work on it, they must enter an action date in the action date column" Automatic via VBA code. Also that column changes every day an action is made.

    In Conclusion:
    From what you said, it looks like the only interaction with the UserForm that an Employee needs is to see the Assignments, select one, change the Status, and select the Zip code and Bank Data. All other functions can be handled by VBA Code.

    It should be assumed that ancillary functions like save and get new assignments, etc. are included.


    About "The Supervisor:"

    Second Paragraph:
    Good to know about that. We will need to encode cut and paste abilities or some other method to transfer that data.

    Third Paragraph:
    We can add to that UserForm a section that displays that information for the particular Employee that the Supervisor is working on at the moment.

    Fourth Paragraph:
    "but I would like a tracking tool that can also do it by application month's, if that makes sense." All Employees by month or just a monthly summary, ie, one line per month for many months. Or Both. In each case it just means one more sheet in the Master log and a little bit of code.



    Another Issue Paragraph:
    The functionality of all formulas will be moved to the VBA code



    You are starting to have to keep track of a lot of data. If we can keep all the functionality we have discussed, would you mind if we very slightly change the way in which that data is organized?

    What I am suggesting is that all Employee's data is permanently stored in an Employee book like the current Play Employee.xlsx.

    Employees come and go, quite often in different Fiscal periods. A sheet for them would be created in Master Employee Log.xlsx book when they start, and would be removed at the end of the fiscal period that they leave. We would still save all data every fiscal period.

    Master Log.xlsx would only have the Master Log sheet, the Reference sheet, and the sheets mentioned in About Supervisors, para 4 above.

    I believe this would make the code easier to write and to maintain.


    In regards to my post #14
    We really do need to know the exact order in which they perform every step in the process.

    Also, how do the employees know which documents are cleared and how they know which ones are still needed?

    How do the Supervisors receive new assignments?

    While creating this system will probably take less time than I have already spent on it, (around 14 hours, so far,) nobody want us to deliver it and then discover that it is not right and we have to do it all over again.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  17. #17
    Quote Originally Posted by SamT View Post
    About "The Employee:"

    First Paragraph:
    I am looking at Play Employee.xlsx right now and I don't see any column for any 10 Day status.

    I apologize, I meant the 1st response column, in this column the employee will be entering dates, as well as the 2nd response column and the action date column.

    The supervisor enters dates on the
    application date column and the date assigned column.

    You said, "the worker will go to their log and usually just clear the cases for documents and narrate any documents that are still needed." What do you exactly mean by "Their log?" No Document columns are in the Play Employees workbook. By "Narrate" do you mean they are speaking?

    Again, I'm sorry I was speaking in terms we use in our business. The employee's log is essentially their person workbook (ex. Play Employee) each employee has their own and we usually refer
    to them as logs.

    Also by narrate I mean that the employee will enter their remarks on the assignment they touch in the comments column, this column will be updated
    with the employee's comments/remarks, in text form, every time they touch an assignment.

    You said, "select 1st 10 day as well as enter the date in the lst 10 day column." That is two actions and implies that there are some multiple of two more columns, which I don't see.

    Correct, it is essentially two actions. If they need to send the 1st request for a response to the client, they will first enter the date which the response by the client is due in the 1st response column which is column K and they will select 1st response or first 10 day in the status's drop down list. If I don't have that list set up in the status column, I apologize, but it is normally there and I can upload an example of what I am talking about in the morning.

    The worker will do this series of steps twice, once for the 1st
    request for a response (column K) and status update (column M) and then repeat the steps when they send the 2nd request for a response (column L) and change the status (column M) to be 2nd response.

    Second Paragraph:
    "however an employee must still be able to make any changes to those cells which the assignments are completed due to changes sometimes occurring." Are those changes made by the Supervisor and that assignment resent to the Employee. IOW, Who is the first to know about the changes, the Supervisor or the Employee?

    Changes to the status of an assignment are always made by an employee, the employee is usually always the first one to know, sometimes a supervisor may be aware of it, but he or she almost always has the employee process the assignment's new status. Status (column M) values can be unprocessed, (empty,) "Approved," "1st response," "2nd response," and Denied." Changes happen periodically usually through a 45 sometimes 60 day process. That is usually the time frame that is takes for an employee to actually complete the process of an assignment.

    Third Paragraph:
    "Every time an employee touches an assignment and does some sort of work on it, they must enter an action date in the action date column" Automatic via VBA code. Also that column changes every day an action is made.

    Oh awesome, that'll save time!

    In Conclusion:
    From what you said, it looks like the only interaction with the UserForm that an Employee needs is to see the Assignments, select one, change the Status, and select the Zip code and Bank Data. All other functions can be handled by VBA Code.

    It should be assumed that ancillary functions like save and get new assignments, etc. are included.

    Yes that is essentially all the employees do, they do enter dates in columns (K and L) however we can just make the an automatic thing as well. Any time the employee changes the status to 1st response it means that 10 days from that action the client's documents are due. Same thing for the 2nd response. So either the employee can enter that date or it can auto populate in those columns.


    About "The Supervisor:"

    Second Paragraph:
    Good to know about that. We will need to encode cut and paste abilities or some other method to transfer that data.

    Third Paragraph:
    We can add to that UserForm a section that displays that information for the particular Employee that the Supervisor is working on at the moment.

    Fourth Paragraph:
    "but I would like a tracking tool that can also do it by application month's, if that makes sense." All Employees by month or just a monthly summary, ie, one line per month for many months. Or Both. In each case it just means one more sheet in the Master log and a little bit of code.

    Oh no that is not what I meant at all. Okay so Employees get assignments every month (usually corresponds to the app date in column D). The supervisors would like the be able to track the progress of the assignments of every employee by the month of applications, (Column D.) For example in the Play Master log, the first tab has a tracking tool that tracks all the approvals, denials, unprocessed, 1st responses, and so forth for all employees. What would be great is to have a tracking tool just like that but tracks the status by the application month. Hopefully that makes more sense.



    Another Issue Paragraph:
    The functionality of all formulas will be moved to the VBA code



    You are starting to have to keep track of a lot of data. If we can keep all the functionality we have discussed, would you mind if we very slightly change the way in which that data is organized?



    What I am suggesting is that all Employee's data is permanently stored in an Employee book like the current Play Employee.xlsx.

    Employees come and go, quite often in different Fiscal periods. A sheet for them would be created in Master Employee Log.xlsx book when they start, and would be removed at the end of the fiscal period that they leave. We would still save all data every fiscal period.

    Master Log.xlsx would only have the Master Log sheet, the Reference sheet, and the sheets mentioned in About Supervisors, para 4 above.

    I believe this would make the code easier to write and to maintain.

    I think I see what you're saying and it looks like this would make things much easier. Keep in mind the master workbook does need the tracking tool to be able to monitor the progress of the cases, like the one in the Play Master.

    In regards to my post #14
    We really do need to know the exact order in which they perform every step in the process.

    I really wish that there was an exact order but in all honesty every employee works differently. The steps that I mentioned above are the steps that every employee takes but it may not be in that order. For example an employee may just approve an assignment right away and not need to do the 1st and 2nd response steps. But they all touch the same columns.

    Also, how do the employees know which documents are cleared and how they know which ones are still needed?

    The employees know the business process and eligibility for their assignments. We have other programs where they can see those documents. We don't need to incorporate any of those programs for these workbooks. They are managed by another agency.

    How do the Supervisors receive new assignments?

    They get them from a different department and program there is also no way to incorporate that process in these workbooks, at least not right now.

    While creating this system will probably take less time than I have already spent on it, (around 14 hours, so far,) nobody want us to deliver it and then discover that it is not right and we have to do it all over again.
    I understand and am so terribly sorry that it has taken this long to get the details right
    Last edited by SamT; 10-22-2014 at 07:56 AM.

  18. #18
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    I understand and am so terribly sorry that it has taken this long to get the details right


    I come here to help people with their VBA code.

    For fun.

    If it stops being fun, I will ask someone else to step in.
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  19. #19
    hahaha okay great 1

    Let me know if there is anything else you need.

  20. #20
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Wow, you must have been tired last night. This is the first time I have seen you mangle the American language like that. You are the best communicator I have dealt on such a complex problem. You have almost always limited your vocabulary to the vocabulary of the workbooks you uploaded.

    If you go back and look at your last post, you will see a lot of purple words.Those are my edits of your post. I corrected some typos, edited some sentence structures, and added some of my best guesses as to what you were trying to tell me. I already see that I was factually wrong about the drop down list in the Status column. Please check it out and tell me where else I was wrong and what it should be.

    Can you show us all the dropdown lists. IMO, the best way is to create them in an excel sheet, then copy that table and just paste it into your post. I am running XL 2003, so I can't see them in .xlsx workbooks.

    Here is an image of a conceptual Employee's User Form
    Yellow background indicates that it is locked from the User and auto-completed by code
    Green is instructional
    Black borders indicate a Label (Like a Column header)

    I already see some errors and omissions in the Command Buttons. Please tell us any suggestions or wants that you have.

    Click Image for larger size
    Attached Images Attached Images
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

Posting Permissions

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