Results 1 to 3 of 3

HELP: Refuse To Delete Macro applied to all open workbooks

Threaded View

lhaenney HELP: Refuse To Delete Macro... 09-12-2012, 10:18 AM
arlu1201 Re: HELP: Refuse To Delete... 09-12-2012, 10:25 AM
evancharles Re: HELP: Refuse To Delete... 07-02-2013, 10:20 AM
  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).

    Private Sub Worksheet_Deactivate()
    Dim CB As CommandBar
    Dim Ctrl As CommandBarControl
    For Each CB In Application.CommandBars
    Set Ctrl = CB.FindControl(ID:=847, recursive:=True)
    If Not Ctrl Is Nothing Then Ctrl.OnAction = ""
    Next
    End Sub
    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.

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