+ Reply to Thread
Results 1 to 3 of 3

HELP: Refuse To Delete Macro applied to all open workbooks

  1. #1
    Registered User
    Join Date
    08-26-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    1

    Exclamation HELP: Refuse To Delete Macro applied to all open workbooks

    I need help. I accidentally applied the RefuseToDelete Macro I saw online to all open workbooks. Now, I cannot delete any sheets of any excel file I have.

    The code I use is: (from this forum. CLICK ME).

    Please Login or Register  to view this content.
    How will I remove this so my Excel will return to normal. I also attached the file where I am suppose to use the code to

    Thanks,
    Linrose
    Attached Files Attached Files
    Last edited by arlu1201; 09-12-2012 at 10:25 AM.

  2. #2
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,163

    Re: HELP: Refuse To Delete Macro applied to all open workbooks

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    10-15-2012
    Location
    Cary
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: HELP: Refuse To Delete Macro applied to all open workbooks

    I ran into this same issue; after removing all the code from a particular workbook, excel kept trying to access the "RefusetoDelete" macro within other general worksheets. To fix this, let the corrupted workbook load and use the worksheet_deactivate macro for both the worksheet_activate and worksheet_deactivate macros.

    Add the following code to the corrupted workbook's worksheet:

    Please Login or Register  to view this content.
    Now activate and deactivate a worksheet after saving the changes within the corrupted worksheet. Delete should now be enabled.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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