ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó¶×¤J¤£¯S©wªº¹Ï¤ùÀÉ

¥»©«³Ì«á¥Ñ oobird ©ó 2012-5-4 00:30 ½s¿è
  1. Private Sub CommandButton1_Click()
  2.     Dim shp As Shape, c As Range
  3.     On Error Resume Next
  4.     For Each shp In ActiveSheet.Shapes
  5.         If Not shp.Type = 12 Then shp.Delete
  6.     Next

  7.     For Each c In Range("b2", [b65536].End(3))
  8.         On Error Resume Next
  9.         c(1, 2).Select
  10.         Set p = ActiveSheet.Pictures.Insert(ThisWorkbook.Path & "\TEST16\" & c & ".gif")
  11.         With p
  12.             .Name = c.Value
  13.             .Height = c(1, 2).Height
  14.             .Width = c(1, 2).Width
  15.             .Placement = xlMoveAndSize
  16.          End With
  17.     Next

  18. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¨C¤ÑµL©Ò¨Æ¨Æ¡A¬O¤H¥Íªº®ø¶OªÌ¡A¿n·¥¡B¦³¥Î¤~¬O¤H¥Íªº³Ð³yªÌ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD