+ Reply to Thread
Results 1 to 4 of 4

Thread: Objects Removal

  1. #1
    Registered User
    Join Date
    10-07-2011
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    48

    Thumbs up Objects Removal

    So, here's the issue:

    In the insert menu item, I wanted to choose an Adobe Acrobat Document (within the "object" option). However, I accidentally clicked on "Apods01 Control". Yet, now I can't remove it. I can not select it, delete, or even find it anywhere... It's very annoying, and I can not seem to find anything on it, to explain how to remove it, or what I have to do to select it.

    Regards,
    Apelcius
    Last edited by Mordred; 01-27-2012 at 04:04 PM. Reason: answered

  2. #2
    Forum Guru Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,276

    Re: Objects

    The following is an adaptation of code from shg and JBeaucaire
    Sub ObjectFindRemove()
    
        Dim Wks As Worksheet
        Dim Obj As Object
    
        Set Wks = Worksheets("Sheet1")
        For Each Obj In Wks.OLEObjects
            Obj.Select
            If MsgBox(Title:="Whee!", _
                      Prompt:="Delete """ & Obj.Name & """?", _
                      Buttons:=vbYesNo) = vbYes Then
                Obj.Delete
                DoEvents
            End If
        Next Obj
    
    End Sub
    Please leave a message after the beep!

  3. #3
    Registered User
    Join Date
    10-07-2011
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Objects Removal

    Thank you much! I'll try that now. [For some reason, I didn't receive a response email, saying that you responded. But, I will definitely try it, and definitely appreciate the help]

  4. #4
    Registered User
    Join Date
    10-07-2011
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Objects Removal

    Worked!! Awesome!! Thanks much. I was freaking out because I really needed it gone.

+ 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.2.0