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

[µo°Ý] ¦p¦ó¿z¿ï¹Ï¤ù,¨Ã´¡¤J«ü©wªºÄæ¦ì

[µo°Ý] ¦p¦ó¿z¿ï¹Ï¤ù,¨Ã´¡¤J«ü©wªºÄæ¦ì

¥»©«³Ì«á¥Ñ jackyliu ©ó 2011-2-15 01:40 ½s¿è

½Ð±Ð °ª¤â­Ì:
­n¦p¦ó±NC:\TEST\¦a¤Uªº¹Ï¤ù ¸g¹L¿z¿ï ´¡¤J©Ò©w¸qªºÄæ¦ì¤º,
¥i§_À°¦£¤@¤U,¦]Åv­­Ãö«Y,¥i§_¶Kµ{¦¡½X.... ¦pªþ¥ó ! ¸U¤À·P¿E !

¤wª¾±ø¥ó
1. ¹Ï¤ù´¡¤J½d³òH¡BI¡BJ¡BK¡BL¡BM
2. ¹Ï¤ùÀx¦s¦ì¸m©óC:\TEST\*.JPG(°ÆÀɦW)
3. ¹Ï¤ù©R¦W³W«h1-T¡B1-T-O
4. ¹Ï¤ù´¡¤J³W«h1¬°´¡¤J²Ä¤@¦C¡BT¬°´¡¤J²Ä¤@¦Cªº(T)²Ä¤T½X¬°0¡B1¡B2¡B3, ­Y¦³²Ä¤T½X«h¨Ì§Ç´¡¤J¦ÜK¡BL¡BM Äæ¦ì
5. ¹Ï¤ù¤j¤p °ª«×2.7cm¡B¼e«×3.6cm
6. ¸ê®Æ¤ñ¼Æ¤£³]­­10µ§,©Ò¥H ¶×®t¤Jªº¹Ï¤ù¥i¯à·|¨ì¹F²Ä200¦Cªº¬YÄæ¦ì

test01.rar (51.4 KB)

¦^´_ 1# jackyliu

¹Ï¤ù©R¦W³W«h¤£¬O«ÜÀ´¡A¥ý¸Õ¸Õ³o¼Ë¬Ý«ç¼Ë¤£¦P
  1. Sub Ex()
  2. Dim A As Range, C As Range
  3. ar = Array("C", "F", "T")
  4. ay = Array(8, 9, 10)
  5. ak = Array("", 0, 1, 2, 3)
  6. fd = "C:\TEST\" '¹Ï¤ù¥Ø¿ý
  7. With Sheet1
  8. .Pictures.Delete
  9. For Each C In .Range(.[C3], .[C65536].End(xlUp))
  10. r = C.Row
  11.     For i = 0 To 2
  12.        For j = 0 To 3
  13.        mystr = IIf(ak(j) = "", "", "-" & ak(j))
  14.        fs = C & "-" & ar(i) & mystr & ".jpg"
  15.        If Dir(fd & fs) <> "" Then
  16.           Set A = .Cells(r, IIf(j = 0, ay(i), 10 + j))
  17.           With .Pictures.Insert(fd & fs)
  18.             .Top = A.Top: .Left = A.Left: .Height = A.Height: .Width = A.Width
  19.           End With
  20.        End If
  21.        Next
  22.     Next
  23. Next
  24. End With
  25. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

1. ¥i¥HÀ°§Ú¸ÑÄÀ¤@¤U¶Ü? ¤£¤Ó¤F¸Ñ­C
2. ¥i¹Ï¤ù¦³52-T-1.jpg ©M53.jpg ³£µLªk´¡¤J²Ä52©M53¦C¸Ì­C
·P®¦ !

TOP

52-T-1­n¦b½s¸¹52ªº­þ¤@Äæ?
53.jpg ­n¦b½s¸¹53ªº­þ¤@Äæ?
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ jackyliu ©ó 2011-2-15 23:42 ½s¿è

¦]¹Ï¤ù¸ê®Æ¤@ª½©¹¤U©µ¦ùÃö«Y,·|¦³«Ü¦hªºID ±Ô­z, ©Ò¥H·|¦³«Ü¦h¦C
52-T-1­n¦b½s¸¹52ªº­þ¤@Äæ?---> Äæ¦ì¦WºÙNO  ªº²Ä52µ§¹Ï¤ù¤]´N¬O²Ä52¦æ¦CªºLÄæ¦ì
53.jpg ­n¦b½s¸¹53ªº­þ¤@Äæ?---> Äæ¦ì¦WºÙNO  ªº²Ä53µ§¹Ï¤ù¤]´N¬O²Ä5¦æ¦CªºHÄæ¦ì


´¡¤J¹Ï¤ù°µ»¡©ú
HÄæ´¡¤Jªº©w¸q=¹Ï¤ù¦WºÙ¬°¾ã¼Æ,¦C¦p;52, 53, 54
IÄæ´¡¤Jªº©w¸q=¹Ï¤ù¦WºÙ¬° *-C     ,¦C¦p;52-C , 53-C, 54-C
JÄæ´¡¤Jªº©w¸q=¹Ï¤ù¦WºÙ¬° *-T     ,¦C¦p;52-T , 53-T, 54-T
KÄæ´¡¤Jªº©w¸q=¹Ï¤ù¦WºÙ¬° *-*-1 ,¦C¦p;52-C-1 , 53-T-1, 54-T-1
LÄæ´¡¤Jªº©w¸q=¹Ï¤ù¦WºÙ¬° *-T     ,¦C¦p;52-C-2 , 53-T-2, 54-T-2
MÄæ´¡¤Jªº©w¸q=¹Ï¤ù¦WºÙ¬° *-T    ,¦C¦p;52-C-3 , 53-T-3, 54-T-3

TOP

¦^´_ 5# jackyliu


    H2¡BI2ªºC¡BF¨Ã¨S¦³¦b¹Ï¤ùÀɦWªº½s¸¹³W«h¤º¶Ü?
¤£µM¬°¦ó53.jpg  ·|¦bHÄæ¦ì?
½Ð¦b¦UÀx¦s®æ¦ì¸m¶ñ¤J¹Ï¤ùÀɦW¡A¥HÂç²M©R¦W³W«h»Pªí®æ¦ì¸mªºÃö«Y
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 6# Hsieh


¦pªþ¥ó»¡©ú!
·PÁ±z

1.jpg (49.42 KB)

1.jpg

TOP

¦^´_ 7# jackyliu
  1. Sub Ex()
  2. Set d = CreateObject("Scripting.Dictionary")
  3. fd = ThisWorkbook.Path & "\" '¹ÏÀɥؿý
  4. fs = Dir(fd & "*.jpg")
  5. Do Until fs = ""
  6. If InStr(fs, "-") = 0 Then '¥u¦³¼Æ­È
  7.    d(fs) = "H" & Val(fs) + 2 '¦]¬°¦b²Ä¦C©Ò¥H¥[2
  8.    ElseIf Len(fs) - Len(Replace(fs, "-", "")) = 1 Then '¥u¦³1­Ó¤À¹j²Å¸¹
  9.    '²Ä2½X¬°C´N¬OIÄæ¡A§_«h´N¦bJÄæ
  10.      If Split(fs, "-")(1) = "C" Then d(fs) = "I" & Val(fs) + 2 Else d(fs) = "J" & Val(fs) + 2
  11.    Else
  12.    '²Ä3½X¬O1´N¦bKÄæ¡A2´N¦bLÄæ¡A¨ä¾l¦bMÄæ
  13.    k = IIf(Split(fs, "-")(2) = 1, "K", IIf(Split(fs, "-")(2) = 2, "L", "M"))
  14.    d(fs) = k & Val(fs) + 2
  15. End If
  16. fs = Dir
  17. Loop
  18. With Sheet1
  19. .Pictures.Delete '²M°£©Ò¦³¹Ï¤ù
  20. Application.ScreenUpdating = False
  21. For Each ky In d.keys
  22.    Set A = .Range(d(ky)) '¹Ï¤ù´¡¤Jªº¦ì¸m
  23.       With .Pictures.Insert(fd & ky) '´¡¤J¹ÏÀÉ
  24.          .Top = A.Top
  25.          .Left = A.Left
  26.          .Height = A.Height
  27.          .Width = A.Width
  28.        End With
  29. Next
  30. End With
  31. Application.ScreenUpdating = True
  32. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

ªO¤j  ¦n±j....
·PÁ±zªºÀ°¦£

¥t¥~¤@°Ý ¹Ï¤ù¤j¤p¦n¹³¨S¬Ý¨ì¦³³]©w,¥i¹Ï¤ù¤S¥i²Å¦X»Ý¨D  ¹Ï¤ù¤j¤p °ª«×2.7cm¡B¼e«×3.6cm
µ{¦¡¸Ì¥u¦³³o¼Ë¼g (  Height = A.Height), ¤°»ò­ì¦]¥i¥HÅý¹Ï¤ù ²Å¦X»Ý¨D  ¹Ï¤ù¤j¤p

TOP

¦^´_ 9# jackyliu
³]©w¦¨Àx¦s®æ¤j¤p
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : «Î¼e¤£¦p¤ß¼e¡C
ªð¦^¦Cªí ¤W¤@¥DÃD