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

²Ö­p¥[Á`¼Æ¶q¤Î¨C¶g¥[Á`¼Æ¶q

¥»©«³Ì«á¥Ñ yen956 ©ó 2014-4-18 16:39 ½s¿è

¦^´_ 2# rakefrank
¸Õ¸Õ¬Ý:
1. c9¤½¦¡ =C8
D9¤½¦¡ =C9+D8 ¦V¥ª©Ô(½Æ»s)

2.
(A)D10¤½¦¡
=SUM(C8:E8)
(B)i10¤½¦¡ =SUM(F8:L8)
½Æ»s¨ì ¦U¶g ¶g¥|

TOP

¦^´_ 4# rakefrank
¸Õ¸Õ¬Ý¡G

®æ¦¡µy§ï, ½Ð¤U¸ü¸Õ¸Õ¬Ý¡G
²Ö­p¥[Á`¼Æ¶q¤Î¨C¶g¥[Á`¼Æ¶q.7z
http://www.mediafire.com/download/kat4hzm9srrsxqc/%E7%B4%AF%E8%A8%88%E5%8A%A0%E7%B8%BD%E6%95%B8%E9%87%8F%E5%8F%8A%E6%AF%8F%E9%80%B1%E5%8A%A0%E7%B8%BD%E6%95%B8%E9%87%8F.7z

TOP

¸ÉVBA
  1. Private Sub CommandButton1_Click()
  2.     Dim Mdays
  3.     Dim i As Integer
  4.    
  5.     '¶§¾ä¨C¤ë¦³´X¤Ñ
  6.     Mdays = Array(0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31)
  7.    
  8.     [C2].Resize(3, 31) = ""
  9.     [C6].Resize(2, 31) = ""
  10.    
  11.     '3¤ë1¤éªº«e¤@¤Ñ, §Y¬°2¤ëªº³Ì«á¤@¤Ñ, ¤]¬O2¤ëªº¤Ñ¼Æ
  12.     '³o¤]¬O Excel §P§O¶§¾äy¦~¬O§_¬°¶|¦~ªº¥t¤@¤èªk
  13.     Mdays(2) = Day(DateSerial([N1], 3, 1) - 1)
  14.         
  15.     [C6] = [C5]
  16.         
  17.     For i = 1 To Mdays([Q1])
  18.         Cells(2, i + 2) = [N1] & "/" & [Q1] & "/" & i
  19.         Cells(3, i + 2) = i
  20.         Cells(4, i + 2) = Weekday(Cells(2, i + 2), vbMonday)
  21.             
  22.         '¿é¤J²Ö­p¤½¦¡
  23.         If i <> Mdays([Q1]) Then
  24.             Cells(6, i + 3) = "=RC[-1]+R[-1]C"
  25.         End If
  26.             
  27.         '­pºâ¤¤¶¡¨C¶g¥Í²£¶q
  28.         If Cells(4, i + 2) = 7 And i + 2 - 6 > 1 Then
  29.             Cells(7, i + 2) = "=SUM(R[-2]C[-6]:R[-2]C)"
  30.               
  31.         '­pºâ²Ä¤@¶g¥Í²£¶q
  32.         ElseIf Cells(4, i + 2) = 7 Then
  33.             Cells(7, i + 2) = "=SUM(R[-2]C[" & [C4] - 7 & "]:R[-2]C)"
  34.         End If
  35.     Next
  36.         
  37.     '­pºâ³Ì«á¤@¶g¥Í²£¶q
  38.     If Cells(4, Mdays([Q1]) + 2) < 7 Then
  39.         Cells(7, Mdays([Q1]) + 2) = "=SUM(R[-2]C[-" & Cells(4, Mdays([Q1]) + 2) - 1 & "]:R[-2]C)"
  40.     End If
  41. End Sub
½Æ»s¥N½X

TOP

¦^´_ 7# GBKEE
¤F¸Ñ, ­ì¨Óª½±µ¦b¤é´Á-1´N¥i¥H¤F,
¤£¥²¨D¥XDateSerial¦A-1, ÁÂÁÂ!!

TOP

¦^´_ 9# GBKEE
¹ï§Ú¨Ó»¡, ¦³ÂI©â¶H(¤Ó¦h¬Û¹ï¦ì¸mªº¬Û¹ï¦ì¸m), ¦³ÂIÃø,
¥¿¦b¬ã¨s¤¤, ÁÂÁ¦A¤T«ü±Ð!!ÁÂÁÂ!!

TOP

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