+ Reply to Thread
Results 1 to 8 of 8

Delete Sheet Based on Master Sheet Criteria

  1. #1
    Registered User
    Join Date
    03-23-2010
    Location
    Auckland, Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Exclamation Delete Sheet Based on Master Sheet Criteria

    Hi everyone, Im new to VBA and Macros.

    I need your help, as my boss asked if its possible to automaticly delete sheet from from workbook based on information from master sheet.
    I have a workbook with 50 sheets in it and master sheet with names of those sheet. So what he wants me to do is when I delete one of those names on the cover sheet the relevant sheet will be automaticly deleted from the workbook. Is it possible?

    I hope it makes sence.

    Please help

    Thank you

    Evgeny

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Automaticly Delete Sheet Based on Master Sheet Criteria

    You can try with this macro:
    Please Login or Register  to view this content.
    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    03-23-2010
    Location
    Auckland, Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Delete Sheet Based on Master Sheet Criteria

    Thank you, but didnt seem to work. How do you relate those sheet to master sheet?

    Cheers

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Delete Sheet Based on Master Sheet Criteria

    Macro seeks the name of several sheets in cells of sheet named 'master' and if not found remove sheet... how can I help you better?

    Regards,
    Antonio

  5. #5
    Registered User
    Join Date
    03-23-2010
    Location
    Auckland, Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Delete Sheet Based on Master Sheet Criteria

    Thank you for fast reply. Sorry, VBA and Macros get me really frustrated, since i am really new to it Could you give me an example of how it works or shall post the Excel workbook for you to look over?

    I have been trying to find an answer for ages, but had no luck. In the end i told my boss there is no way to do, but with your kind help i can possible impress him

    Kind Regards,

    Evgeny

  6. #6
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Delete Sheet Based on Master Sheet Criteria

    I attached workbook. To apply macro you can click right mouse on sheet name and select view code.

    Regards,
    Antonio
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-23-2010
    Location
    Auckland, Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Delete Sheet Based on Master Sheet Criteria

    Works great, thanks a lot !!!

  8. #8
    Registered User
    Join Date
    03-23-2010
    Location
    Auckland, Australia
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Delete Sheet Based on Master Sheet Criteria

    Many thanks again, is there a return function to undo delete?

    Regards,

    Evgeny

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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