{quote}{login=}{date=28.12.2011 05:43}{thema=}{post}
Sub Rename_Shapes()
Dim oShape As Object, iNewName$
For Each oShape In ActiveSheet.Shapes
iNewName = Range("C" & Range(oShape.TopLeftCell.Address).Row).Text
If iNewName = "" Then
iNewName = Range("C" & Range(oShape.TopLeftCell.Address).Row - 1).Text
End If
oShape.Name = Trim(iNewName)
iNewName = ""
Next oShape
End Sub{/post}{/quote}
спасибищееееее, Вы гений!
Sub Rename_Shapes()
Dim oShape As Object, iNewName$
For Each oShape In ActiveSheet.Shapes
iNewName = Range("C" & Range(oShape.TopLeftCell.Address).Row).Text
If iNewName = "" Then
iNewName = Range("C" & Range(oShape.TopLeftCell.Address).Row - 1).Text
End If
oShape.Name = Trim(iNewName)
iNewName = ""
Next oShape
End Sub{/post}{/quote}
спасибищееееее, Вы гений!