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

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

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

¦U¦ì¤j¤j

¦p¦ó±q¸ê®Æ§¨¶×¤JBÄæ©Ò¹ïÀ³ªº¦P¦W¹Ï¤ù¦WºÙ
(BÄæ¦WºÙ¬°¦Û¦æ¶ñ¤J)

¦ÜCÄ檺Àx¦s®æ¤º¨Ã²Å¦X¸ÓÀx¦s®æ¤j¤p?
(­YµL¹Ï¤ù«h¸õ¹Lª½¨ìµL¹Ï¤ùÀɦp#4,#8,#12-#14©M#18¨S¦³¹Ï¤ùÀÉ´N­n¸õ¹L)

·Ð½Ð¥ý¶i ¤j¤j«ü¾É
TEST16.rar (713.81 KB)

¥»©«³Ì«á¥Ñ 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

¥»©«³Ì«á¥Ñ Hsieh ©ó 2012-5-4 09:05 ½s¿è

¦^´_ 1# luke
  1. Sub Loadimage()
  2. fd = ThisWorkbook.Path & "\TEST16\"
  3. Dim Sp As Shape
  4. For Each Sp In Sheet1.Shapes
  5.   If Sp.Type = 13 Then Sp.Delete
  6. Next
  7. For Each a In Range([B2], [B65536].End(xlUp))
  8. fs = fd & a & ".gif"
  9. If Dir(fs) <> "" Then Sheet1.Shapes.AddPicture fs, msoFalse, msoTrue, a.Offset(, 1).Left, a.Top, a.Offset(, 1).Width, a.Height
  10. Next
  11. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : §g¤l¦p¤ô¡AÀH¤è´N¶ê¡AµL³B¤£¦Û¦b¡C
ªð¦^¦Cªí ¤W¤@¥DÃD