- ©«¤l
- 1
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 2
- ÂI¦W
- 0
- §@·~¨t²Î
- xp
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 10
- µù¥U®É¶¡
- 2015-11-26
- ³Ì«áµn¿ý
- 2017-7-12
|
¦U¦ì¦n
¥Ø«e¤p§Ì¸I¨ì¤@Ó°ÝÃD
´N¬O§Úªº¸ê®Æ§¨¤º³£·|¦³³sÄòªº§å¸¹
ex:A00001,A00002,A00003,...
¸Ì±ªº¹Ï¤ù¤]¬O³£¬O³sÄòªº
ex:001-1,001-2,002-1,002-2,.....
¥Ø«e¦³ª¦¤å¥i¥HÅý¤@Ó¸ê®Æ§¨±a¤J¹Ï¤ù
¥i¬O¨S¦³¿ìªk·j´M¤U¤@Ó¸ê®Æ§¨
Åܦ¨§Ún±a¤J¤U¤@Óªº®ÉÔn¥h§ïVBA
³o¼Ë·Pı«ÜºC
¥H¤Î»¡¦]¬°¦³¨Ç¸ê®Æ§¨¤ºªºÀÉ®×·|¸õ¸¹,¦ý¬OÀɦW¤@¼Ë
¤£ª¾¹D¯à¤£¯à³]©w¦b±a¤J¹Ï¤ù«á¥i¥H°Ñ·Ó²Ä¤@¦C
Y¦³²Ä¤@¦C(¤w¤â°Ê¥´¤W¥hªº¦W¦r)¤~±a¤J¹ïÀ³¹Ï¤ù
ªþ¤W§Úª¦¤å«áªºµ{¦¡½X
ÁÂÁ¦U¦ì
Sub PHOTO()
ActiveSheet.Columns("C") = ""
Set Sh = ActiveSheet
With Sh
.Pictures.Delete
End With
fs = Dir("G:\picture\A00001\*.jpg")
Do Until fs = ""
R = R + 1
Cells(1, R + 1) = fs
Cells(2, R + 1).Select
ActiveSheet.Pictures.Insert("G:\picture\A00001\" & Cells(1, R + 1)).Select
With Selection
.Top = ActiveSheet.Cells(2, R + 1).Top + 1
.Left = ActiveSheet.Cells(2, R + 1).Left + 1
.Width = ActiveSheet.Cells(2, R + 1).Width - 1
.Height = ActiveSheet.Cells(2, R + 1).Height - 1
End With
fs = Dir
Loop
End Sub |
|