- ©«¤l
- 7
- ¥DÃD
- 4
- ºëµØ
- 0
- ¿n¤À
- 15
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN10
- ³nÅ骩¥»
- Office2003
- ¾\ŪÅv
- 10
- ©Ê§O
- ¤k
- ¨Ó¦Û
- ¥xÆW
- µù¥U®É¶¡
- 2014-4-23
- ³Ì«áµn¿ý
- 2017-5-14
|
©êºp!!
ªþ¤Wµ{¦¡½X..
§Ú·Q¦b¤½¥q¥Î³oÓµ{¦¡ ¸ô®|¹Ï¬O\\178.153.85\fast\«~½èºÞ²zG\ ¬O§_¤]¥i¥H§ì¹Ï
«D±`·PÁ¤j¤j ¸Ñµª
Sheets("Sheet1").Select
Sub ¸ü¤J¹Ï¤ù()
Dim MyRng As Range, XR As Range, uPath$, y&, xFile$
Set MyRng = [A3]
If [A3] = "" Then MsgBox "µL¹ÏÀɦWºÙ¡I": Exit Sub
'ThisWorkbook.Path ¶Ç¦^³o¬¡¶Ã¯ÀɮצsÀɪº¸ô®| ¦p ="C:\"
uPath = ThisWorkbook.Path & "c:/my picture/" ' =>"C:\c:/my picture/" ³o¬O¿ù»~ªº¸ô®|?
'¬O³o¼Ë§a!!
uPath = ThisWorkbook.Path '->= "c:/my picture" ¹ï¶Ü???
If Dir(uPath, vbDirectory) = "" Then MsgBox "§ä¤£¨ì¹ÏÀÉ¸ê®Æ§¨¡I": Exit Sub
ActiveSheet.P2ctures.Delete
Sheets("Sheet1").Select
Application.ScreenUpdating = False
For Each XR In Union([B3], [C3], [D3], [E3])
y = y + 1
xFile = uPath & "\" & MyRng & "-" & y & ".JPG"
If Dir(xFile) <> "" Then
With ActiveSheet.Pictures.Insert(xFile)
.ShapeRange.LockAspectRatio = msoFalse
.Width = XR.Width
.Height = XR.Height
.Left = XR.Left
.Top = XR.Top
End With
End If
Next
End Sub |
|