Excel Automation for Shapes

Never done this, but will you be able to execute a macro inside the loop?

something like

ActiveSheet.Shapes("Rectangle 1")
        .Width = row("width").ToString()
        .Height = row("height").ToString()