View Single Post
Old 09-01-2007, 10:49   #2
Cecilia76
Senior Member
 
L'Avatar di Cecilia76
 
Iscritto dal: Aug 2004
Messaggi: 1399
Ragazzi,

nessuno sa aiutarmi? Io ho scoperto che quando si trascinano dei file .lnk in word si creano delle InlineShape. Allora ho provato a enumerare le InlineShapes presenti in un documento e funziona, ma non riesco ad avere nessuna info (ad esempio il nome del file.lnk).
Ecco il codice:

Codice:
Sub EnumInlineShapes()
    Dim i As Long, tmp As InlineShape
    For i = ActiveDocument.InlineShapes.Count To 1 Step -1
        With ActiveDocument.InlineShapes(i)
            If .Type = wdInlineShapeEmbeddedOLEObject Then
                MsgBox "Embed OLE Object"
                'qui vorrei prendere il nome del file
            Else
                MsgBox "Other"
            End If
        End With
    Next i
End Sub
Qualche suggerimento??

C.
__________________
If you eat a live frog in the morning, nothing worse will happen to
either of you for the rest of the day.
Cecilia76 è offline   Rispondi citando il messaggio o parte di esso