Finn
Sun Oct 17 06:35:16 CDT 2004
"Helmut Weber" <elmkqznfwvccbf@mailinator.com> skrev i en meddelelse
news:cn73n01ers0m4vordto8agslfk8642vne1@4ax.com...
> Hi Finn,
> easy with the name, kind of odd with the index:
> Sub test9991()
> Dim n As String 'Name
> Dim i As Integer
> n = Selection.ShapeRange.Name
> For i = 1 To ActiveDocument.Shapes.Count
> If ActiveDocument.Shapes(i).Name = n Then
> MsgBox "Shape " & Chr(34) & n & Chr(34) & " is Shape " & i
> Exit For
> End If
> Next
> End Sub
> ---
> Greetings from Bavaria, Germany
> Helmut Weber, MVP
> "red.sys" & chr(64) & "t-online.de"
> Word XP, Win 98
>
http://word.mvps.org/
Thanks Helmut
It works perfect
/Finn