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

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

¦^´_ 12# jackyliu
If InStr(fs, "-") = 0 Then '¥u¦³¼Æ­È
¥ÎINSTR¨ç¼Æ´ú¸Õ¬Ý¬Ý¹Ï¤ùÀɦW¬O§_¦³"-"¸¹¡A¦]¬°¥u¦³¼Æ­È®É¤~¨S¦³"-"¸¹

d(fs) = "H" & Val(fs) + 2 '¦]¬°¦b²Ä¦C©Ò¥H¥[2
¦r¨åª«¥ó¬O¥Î¨ÓÀx¦sÀɦW¹ïÀ³ªº¦ì§}¡A Val(fs)·|±o¨ìNO­È¡A¦ÓNOªº1¬O±q²Ä3¦C¶}©l¡A©Ò¥H¦C¦ì­n¥[2


¦Ü©ó§A­n¼W¥[Äæ¦ìªº°ÝÃD¡A¤S¦^¨ì¤§«eªº­«ÂI:ÀɦW¸òÀx¦sÄæ¦ìªº¹ïÀ³³W«h
­n¦Û¤v²M·¡¹ïÀ³³W«h¡AµM«á¦b§PÂ_¦¡¤¤¤@±ø¥ó¨Ó¼g¤J¦r¨åª«¥ó
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

1. ª©¤j ¥i¥HÀ°§Ú¸ÑÄÀ³o¨â¦æ¶Ü?
2. ¥t¥~ ¥i¥HÀ°§Ú¥[¤W±Æ§Ç´¡¤JKÄæ¥H«áªºÄæ¦ì¶Ü? (ex : 1-C-0, 1-C-1, 1-T-1, 1-T-2)

If InStr(fs, "-") = 0 Then '¥u¦³¼Æ­È
   d(fs) = "H" & Val(fs) + 2 '¦]¬°¦b²Ä¦C©Ò¥H¥[2

TOP

·PÁ±zªº ¼ö¤ß¨ó§U,¡@·P¿E ~

TOP

¦^´_ 9# jackyliu
³]©w¦¨Àx¦s®æ¤j¤p
¾Ç®üµ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

¦^´_ 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

¦^´_ 6# Hsieh


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

1.jpg (49.42 KB)

1.jpg

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

¥»©«³Ì«á¥Ñ 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

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

TOP

        ÀR«ä¦Û¦b : ¦¨¥\¬OÀuÂIªºµo´§¡A¥¢±Ñ¬O¯ÊÂIªº²Ö¿n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD