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

[µo°Ý] EXCEL §R°£©Ò¦³¹Ï¤ù

¦^´_ 1# whirlwind963
¤u§@ªíªºbottom   °õ¦æ ActiveSheet.Pictures.Delete ³oµ{¦¡½X
°Ñ¦Ò³o¸Ì   Application.Caller

TOP

¦^´_ 3# whirlwind963
µ{¦¡¤¤¨S¬Ý¨ì§R±¼bottom (Shapeª«¥ó)ªºµ{¦¡½X
  1. Sub Macro1()
  2.     Sheets("Sheet1").Select
  3.     ActiveSheet.Pictures.Delete      '¦b¦¹µ{¦¡¥u§R¤@¦¸·Ó¤ù
  4.     j = 2
  5.     While Cells(j, "C") <> ""
  6.        ' ActiveSheet.Pictures.Delete  
  7.      '¦b°j°é¤¤¤@ª½§R·Ó¤ù ¹ï©ó«á­±ªºPictures.Insert ¦³¦ó·N¸q
  8.         NN = Cells(j, "C")
  9.         Cells(j, "D").Select
  10.         ActiveSheet.Pictures.Insert( _
  11.          NN). _
  12.         Select
  13.         Selection.ShapeRange.LockAspectRatio = msoTrue
  14.         Selection.ShapeRange.Height = 100#
  15.         Selection.ShapeRange.Width = 100#
  16.         Selection.ShapeRange.Rotation = 0#
  17.         With Selection
  18.         .Placement = xlMoveAndSize
  19.         .PrintObject = True
  20.         End With
  21.     j = j + 1
  22.     Wend
  23.     Range("C2").Select
  24. End Sub
½Æ»s¥N½X

TOP

¦^´_ 5# whirlwind963
§Aµ{¦¡¤¤¨S¬Ý¨ì§R±¼bottom (Shapeª«¥ó)ªºµ{¦¡½X
ªþ¤WÀɮ׬ݬÝ

TOP

¦^´_ 7# whirlwind963
¥i°Ñ¦Ò ³o¸Ì  http://forum.twbts.com/viewthread.php?tid=687
   
  1. Sub Macro1()
  2.      Dim E As Shape, j, NN
  3.     Sheets("Sheet1").Select
  4.     For Each E In ActiveSheet.Shapes
  5.         If E.Type = 13 Then E.Delete
  6.         'If InStr(E.Name, "Picture") Then E.Delete '³o¤]¥i¥H
  7.     Next
  8.     j = 2
  9.     While Cells(j, "C") <> ""
  10.         NN = Cells(j, "C")
  11.         Cells(j, "D").Select
  12.         ActiveSheet.Pictures.Insert( _
  13.          NN). _
  14.         Select
  15.         Selection.ShapeRange.LockAspectRatio = msoTrue
  16.         Selection.ShapeRange.Height = 100#
  17.         Selection.ShapeRange.Width = 100#
  18.         Selection.ShapeRange.Rotation = 0#
  19.         With Selection
  20.         .Placement = xlMoveAndSize
  21.         .PrintObject = True
  22.         End With
  23.     j = j + 1
  24.     Wend
  25.     Range("C2").Select
  26. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¡i°µ¤Hªº¶}©l¡j¨C¤@¤Ñ³£¬O¬G¤Hªº¶}©l¡A¨C¤@­Ó®É¨è³£¬O¦Û¤vªºÄµ±§¡C
ªð¦^¦Cªí ¤W¤@¥DÃD