| ©«¤l5923 ¥DÃD13 ºëµØ1 ¿n¤À5986 ÂI¦W0  §@·~¨t²Îwin10 ³nÅ骩¥»Office 2010 ¾\ŪÅv150 ©Ê§O¨k ¨Ó¦Û¥xÆW°ò¶© µù¥U®É¶¡2010-5-1 ³Ì«áµn¿ý2022-1-23 
         
 | 
                
| ¥»©«³Ì«á¥Ñ GBKEE ©ó 2014-4-24 05:26 ½s¿è 
 ¦^´_ 1# xlarge16803
 ½Æ»s¥N½XOption Explicit
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.Pictures.Delete
    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
 | 
 |