+ Reply to Thread
Results 1 to 5 of 5

Macro - Open worksheets and archive rows

  1. #1
    Registered User
    Join Date
    11-08-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    24

    Thumbs up Macro - Open worksheets and archive rows

    Hi all,

    I have a requirement to archive some workbooks for employees. I will run through the scenario first.

    Manager.xlsm - Macro workbook which has tabs named with each employee name;

    Tab names;
    Overview - This is an overview sheet which pulls in data from the employee tabs, nothing special here.
    Macros - This is where there are buttons for each employee, these buttons run the macros for each employee.
    EmployeeName1 - This is the tab for the first employee
    EmployeeName2 - This is the tab for the second employee
    EmployeeName3 - This is the tab for the third employee
    And so on...

    Each employee has their own sheet where they store data, the existing macro uses the tab names and sheet names to detect which employee we want to pull data for the pastes the values into the relevant tab above.

    The employees worksheets and the tabs in Manager workbook match exactly (columns, formatting etc etc) the only difference is that the employee worksheets have workbook protection and conditional formatting to stop them causing the macro to fail by changing the format.

    This all works well, the Manager workbook pulls all employee data in, nice and clean execution then the Overview sheet shows an overview of all employees for reporting.

    Here is the macro, each employee has a different macro pointing to their sheets.

    Please Login or Register  to view this content.
    Now what I need to add to this is an archiving option but I want to run this as a seperate Macro because the above macro is ran several times a day but the archiving we will only need to do once a week/month or so.

    I want to create some more tabs within the Manager sheet i.e. Employee1Archive then a macro will run and open the employees worksheet, unprotect it then check column A for any row that has "COMPLETE" in the cell, if it does it will copy the rows and paste values to Employee1Archive then delete the row in the users sheet, reprotect, save and close. Also it should do this without causing empty formatting at the bottom of the sheet (Where scrollbar continues past last used row, not sure how to explain that).

    Each time the macro runs it will paste into Employee1Archive from the last row so not to overwrite data.

    I hope this is clear enough. I have sample sheets if it helps. Thanks

  2. #2
    Registered User
    Join Date
    11-08-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    24

    Re: Macro - Open worksheets and archive rows

    Anyone? Thanks

  3. #3
    Registered User
    Join Date
    11-08-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    24

    Re: Macro - Open worksheets and archive rows

    Bump. Thanks

  4. #4
    Registered User
    Join Date
    11-08-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    24

    Re: Macro - Open worksheets and archive rows

    Bump. Thanks

  5. #5
    Registered User
    Join Date
    11-08-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    24

    Re: Macro - Open worksheets and archive rows

    Wonder how many bumps i can reach before someone actually helps.

+ 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. Excel VBA Archive Monthly Account Returns to an Archive File
    By cmarenco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2016, 10:12 PM
  2. Move Entire Rows to Archive Worksheet
    By LBinGA in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 01-02-2016, 08:05 PM
  3. [SOLVED] Macro to cut/paste entire rows from one tab to Archive tab based on criteria in drop down
    By kmort in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-23-2015, 09:36 AM
  4. Check boxes to transfer rows to archive sheet
    By davislach in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2014, 09:50 PM
  5. Archive worksheets using automated feature
    By jboyd123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-07-2012, 12:05 PM
  6. [SOLVED] match rows and archive, put non matching rows in active
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-21-2011, 05:45 PM
  7. problems to open an excel archive
    By spaniard-in-trouble in forum Excel General
    Replies: 1
    Last Post: 03-30-2006, 06:50 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