+ Reply to Thread
Results 1 to 3 of 3

remove someone completely from workbook

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    541

    remove someone completely from workbook

    I need two macros (or one if we combine them) that remove someone completely from a workbook.
    I have multiple tabs in the workboofk that have an individual name in the tab title. I would like the macro to search the entire workbook and delete all tabs that have a designated name as part of the tab title. The macro should look in a specified cell for a name and then search the workbook and delete all tabs that contains that name.

    The other macro is similar to the first but instead of searching for tabs to delete it would search the workbooks pages and delete all rows that contain the individuals name.

    I have included a example of the workbook i am dealing with. In this example i would like to delete all tabs that contain the name "dean Mcghee" and search the other remaining pages of the workbook and delete every row that has the same name in it.

    Is this possible?
    Attached Files Attached Files
    Last edited by chriswrcg; 01-31-2018 at 09:38 AM.

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

    Re: remove someone completely from workbook

    This code makes a couple of assumptions:
    1. Column A on each sheet contains the last row of data
    2. The name appears only in column A or B

    Please Login or Register  to view this content.
    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
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    541

    Re: remove someone completely from workbook

    I have this code and it is working great except for one small thing. It is deleting all rows containing the name and all tabs that are just the persons name, however I also have some worksheets in the workbook that are "weekly + the persons name". Those tabs are being ignored. What can I add to the code to also include every tab in the workbook that has the word weekly in front of the persons name?
    Please Login or Register  to view this content.

+ 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. remove someone completely from workbook
    By chriswrcg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-03-2017, 10:27 AM
  2. [SOLVED] How can I completely close a specific workbook without closing other open workbooks
    By Sc0ut in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-07-2016, 04:06 PM
  3. Completely remove/delete all the external links (Break Links)
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2014, 05:31 AM
  4. [SOLVED] How to remove a deleted named range completely
    By megaiooo in forum Excel General
    Replies: 8
    Last Post: 08-16-2013, 09:01 PM
  5. [SOLVED] Delete Rows - as in remove them from the sheet completely?
    By MBlaster in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2012, 05:08 PM
  6. Easiest way to completely remove a macro?
    By buzzbee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2009, 11:40 AM
  7. PROJECT LOCKDOWN: Completely Protect My Workbook
    By sowetoddid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2005, 08:52 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