Try something like the following:
Dim OleObj As OLEObject
For Each OleObj In Worksheets("Sheet1").OLEObjects
If OleObj.TopLeftCell.Row = ActiveCell.Row Then
OleObj.Delete
End If
Next OleObj
Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
On Sun, 28 Mar 2010 13:37:01 -0700, Liz
<(E-Mail Removed)> wrote:
>Hi,
>I have seen how you can delete all oleobjects from an active sheet. But I
>cannot figure out how to delete an oleobject (embedded file object) from only
>the current row or active cell.
>
>For instance, in my worksheet, most rows in columns c have embedded file
>objects. I just want a macro to delete the current row's embedded file
>object, not all objects in the active sheet.
>
>Is this possible?
>
>Thanks so much,
>Liz