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

[µo°Ý] ½Ð°Ý¤@­Ó¥¨¶°³]©wªº°ÝÃD

¦^´_ 3# lone_tiger0303


    ½Ð¤W¶Ç§AªºxlsÀÉ®×
§OÅý¤H®a¦^ÂЧAªº°ÝÃD,ÁÙ­n¦A°µ¤@­ÓÀÉ®×´ú¸Õ
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ lone_tiger0303 ©ó 2010-5-25 14:04 ½s¿è

¦]¬°¸ê®Æ§¨¦³¤W¸Uµ§¡A©Ò¥H·Q¥Î¥¨¶°°õ¦æ¡A¥H´î¤Ö®É¶¡®ö¶O
¥t¥~ÁÙ¦³¨Ç°ÝÃD¦A¦V½Ð±Ð±z¤@¤U~~¦p°ÆÀÉ
Áٽбz¨ó§U¡AÁÂÁÂ

²³ø1.jpg (64.84 KB)

²³ø1.jpg

TOP

¨ä¹ê¥Î¤½¦¡´N¯à¸Ñ¨M
­n¥Îvbaªº¸Ü
  1. Private Sub Workbook_Open()
  2. Dim Ay(3, 2)
  3. Ay(0, 0) = 0: Ay(0, 1) = "©¾¸Û«È": Ay(1, 0) = 9.1: Ay(1, 1) = "¤[¥¼¦^«È": Ay(2, 0) = 12.1: Ay(2, 1) = "¬y¥¢«È"
  4. With Sheet1
  5.    Set rng = .Range(.[E2], .[E65536].End(xlUp))
  6.       For Each a In rng
  7.          If IsDate(a) Then
  8.          m = Round((Date - a) / 30, 2)
  9.          k = Application.VLookup(m, Ay, 2)
  10.          a.Offset(, 11).Resize(, 3) = Array(m, k, a.Offset(, -3) & "-" & k)
  11.          End If
  12.        Next
  13. End With
  14. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¦³´¼¼z¤~¯à¤À¿ëµ½´c¨¸¥¿¡F¦³Á¾µê¤~¯à«Ø¥ß¬üº¡¤H¥Í¡C
ªð¦^¦Cªí ¤W¤@¥DÃD