- ©«¤l
- 29
- ¥DÃD
- 7
- ºëµØ
- 0
- ¿n¤À
- 42
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- OFFICE 2003
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2012-9-22
- ³Ì«áµn¿ý
- 2013-1-9
|
¦bA2¿é¤JÀɦW±N¹Ï¤ùÅã¥Ü¦bB2
¯à¨Ï¥Î¸U¥Î¦r¤¸¶Ü?
¨Ò¦p¡GÀɦW¬°ABCDEFG.JPG§Ú¦bA2¿é¤JABC¤]¯àÅã¥ÜABCDEFGªº¹Ï¤ù
¥H¤U¬O§Úªºµ{¦¡½X
½Ð°Ý¸Ó¦p¦ó§ï©O
Sub Macro1()
j = 2
While Cells(j, "A") <> ""
NN = Cells(j, "A")
Cells(j, "B").Select
On Error Resume Next
ActiveSheet.Pictures.Insert("D:\My Pictures" & NN).Select
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 100#
Selection.ShapeRange.Width = 100#
Selection.ShapeRange.Rotation = 0#
With Selection
.Placement = xlMoveAndSize
.PrintObject = True
End With
j = j + 1
Wend
Range("A2").Select
End Sub |
|