- ©«¤l
- 559
- ¥DÃD
- 58
- ºëµØ
- 0
- ¿n¤À
- 626
- ÂI¦W
- 0
- §@·~¨t²Î
- win8
- ³nÅ骩¥»
- office2013
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- TW
- µù¥U®É¶¡
- 2010-11-22
- ³Ì«áµn¿ý
- 2024-6-14
|
¤£¾å±o§Úªº³B²z¤è¦¡~ ¦³¨S¦³²Å¦X¼Ó¥Dªºn¨D
§Úªº¤è¦¡¬O±NdataÂà´«¦¨¨C¶gªº¤è¦¡~ ³o¼Ë¥i¥H±Æ°£¼Ó¥D¼´¤£¨ì¸Ó¶g³Ì«á¤@¤Ñªº¦¬½L»ù°ÝÃD~
ªþ¥ó¬O§Ú§¹¦¨ªºÀÉ®×~ ¶È¬O³]©w¤@Ó«ö°·¥[¤W~ ¨Ï¥Î¤@¨Ç¨ç¼Æ«á~ ±N¨ädata¶i¦æÂà´«~
cÄæ¦ì¨ç¼Æ=WEEKDAY(A2,2) <---±q²Ä2¦C¶}©l
dÄæ¦ì¨ç¼Æ=A3-$A$2 <----±q²Ä3¦C¶}©l
oÄæ¦ì¨ç¼Æ=IF(M2="",IF(L2="",IF(K2="",IF(J2="",IF(I2="","",I2),J2),K2),L2),M2) <---±q²Ä2¦C¶}©l
«öŲªºµ{¦¡½X~
Private Sub CommandButton1_Click()
Sheet1.Range("H:N").ClearContents '¥ý²M°£¸ê®Æ
'Äæ¦ì³]©w
Sheet1.Range("H1") = "¬P´Á¤é"
Sheet1.Range("I1") = "¬P´Á¤@"
Sheet1.Range("J1") = "¬P´Á¤G"
Sheet1.Range("K1") = "¬P´Á¤T"
Sheet1.Range("L1") = "¬P´Á¥|"
Sheet1.Range("M1") = "¬P´Á¤"
Sheet1.Range("N1") = "¬P´Á¤»"
'±N¸ê®ÆÂà´«¬°¨C¤@¶gªº®æ¦¡
Do Until Sheet1.Range("A" & 2 + I) = ""
If Sheet1.Range("A" & 2 + I).Value = Sheet1.Range("A" & 2) Then
Else
A = Int(Sheet1.Range("D" & 2 + I) / 7)
End If
B = B
If B = A Then
K = K
Else
B = A
K = K + 1
End If
Select Case Sheet1.Range("C" & 2 + I)
Case 7
Range("H" & 2 + K) = Sheet1.Range("B" & 2 + I)
Case 1
Range("I" & 2 + K) = Sheet1.Range("B" & 2 + I)
Case 2
Range("J" & 2 + K) = Sheet1.Range("B" & 2 + I)
Case 3
Range("K" & 2 + K) = Sheet1.Range("B" & 2 + I)
Case 4
Range("L" & 2 + K) = Sheet1.Range("B" & 2 + I)
Case 5
Range("M" & 2 + K) = Sheet1.Range("B" & 2 + I)
Case 6
Range("N" & 2 + K) = Sheet1.Range("B" & 2 + I)
End Select
I = I + 1
Loop
End Sub
ªþ¥ó
pºâ¶g³ø¹S.rar (15.05 KB)
µ²ªG¹Ï¥Ü
|
|