+ Reply to Thread
Results 1 to 2 of 2

Macro for deleting rows on multiple sheets

  1. #1
    Registered User
    Join Date
    10-08-2015
    Location
    Waco, TX
    MS-Off Ver
    Excel Mac 2011
    Posts
    3

    Macro for deleting rows on multiple sheets

    I have an employee spreadsheet with multiple sheets. I have several areas where employees can work and can work in several areas.
    Sheets
    1. Complete list of all employees
    2. Area #1
    3. Area #2
    4. Area #3
    The employee lists in the different areas are pulled from the complete list with an If Area 1=X and so on. The problem comes when i delete an employee from the complete list, it gives a #REF! error on the other sheets where the employee is listed. Really any addition or subtraction from the complete list changes the other sheets and they each have to be linked to the correct row in the first sheet.

    Any help out there or other thoughts on how to go about this spreadsheet in a different way?

    thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,467

    Re: Macro for deleting rows on multiple sheets

    Why would you want several sheets with the same data? Excel works best with a simple 2 dimensional matrix and, in the majority of cases (IMO), it is a bad idea (and poor design) to try to replicate data on multiple sheets.

    So, far better to have all the data on one sheet and, if necessary, add a new column for the Area Number, if it does not exist. Convert the data to a Structured Table and you get built in sorting and filtering. Adding or inserting new rows (in the Table) replicates formulae, formatting, Conditional Formatting and Data Validation. You can then base a Pivot Table or Chart on the Table and it will manage increasing ranges.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. deleting rows from multiple sheets in excel 2010
    By Stevecraig211 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-18-2015, 09:31 AM
  2. [SOLVED] Removing multiple rows with specified different data, Created macro is deleting everything
    By kmrath in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2015, 02:57 PM
  3. [SOLVED] Help to speed up macro deleting rows with multiple criteria.
    By Norwaydude in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-02-2014, 05:41 PM
  4. Help to speed up macro deleting rows with multiple criteria.
    By Norwaydude in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 06-24-2014, 11:07 PM
  5. [SOLVED] Macro for Deleting first three rows in all sheets except 1st sheet
    By Haidar123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-01-2014, 08:48 AM
  6. [SOLVED] Deleting rows across multiple sheets?
    By kickme93 in forum Excel General
    Replies: 1
    Last Post: 09-16-2013, 09:08 AM
  7. [SOLVED] Macro for Deleting Multiple Rows Based of 2 Cells and Update Quantity
    By michaelpair in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2013, 11:02 AM

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