- ©«¤l
- 233
- ¥DÃD
- 53
- ºëµØ
- 0
- ¿n¤À
- 292
- ÂI¦W
- 0
- §@·~¨t²Î
- WinXp
- ³nÅ骩¥»
- 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-1-6
- ³Ì«áµn¿ý
- 2024-3-8
|
¥»©«³Ì«á¥Ñ jackson7015 ©ó 2012-2-8 19:17 ½s¿è
¦^´_ 4# GBKEE
¤Åé§ë¦aªº·PÁÂGBKEEª©¥D..
³o¤u§@ªí·Q¤F¦n´X¤Ñ§Ö·Q¯}ÀY¤F..
n¨Dªº°ÝÃD¥u¦³1.2Ó¡A«o§â¾ã½g³£´X¥G¸Ñ¨M¤F..
¤p§ÌÁÙ¦³¨Ç°ÝÃD¡A¸ê®Æ®w¬O¤é³øªíªº²Öp
©Ò¥H¥i¥H¤£²M°£¸ê®Æ®w¡A¦Ó¬O²Öpªº¤è¦¡Ä~Äò¶ñ¤J¸ê®Æ®w¶Ü
ªþ¤WÀÉ®×
¤u§@ªí.rar (22.07 KB)
- Sub Ex()
- Dim Ar(), Rng As Range, Xi As Integer
- With Sheets("¤é³øªí")
- Set Rng = .Range("d7", .[d7].End(xlDown)) '¸ê®Æ½d³ò: BÄ榳®Æªº¦C
- ReDim Ar(1 To Rng.Count, 1 To 14) '°}¦Cªº¤j¤p 1 To 14 => ¸ê®Æ½d³ò BÄæ:OÄæ
- For Xi = 1 To Rng.Count
- Ar(Xi, 1) = Date '¤é´Á
- Ar(Xi, 2) = .Cells(Rng(Xi).Row, "B") '½s¸¹
- Ar(Xi, 3) = .Cells(Rng(Xi).Row, "N") '³Æµù
- Ar(Xi, 4) = .Cells(Rng(Xi).Row, "D") '¦aÂI
- S = "=IF(RC[4]=1,""¬dµL"",IF(RC[3]=1,""¦¨®×"" & SUM(RC[6]:RC[9])&""KW"",""""))"
- Ar(Xi, 5) = S '¦¨®×
- Ar(Xi, 6) = .Cells(Rng(Xi).Row, "E") ¡@'¥Dn
- Ar(Xi, 7) = .Cells(Rng(Xi).Row, "F") ¡@'«D¥Dn
- Ar(Xi, 8) = .Cells(Rng(Xi).Row, "G") ¡@'¬O
- Ar(Xi, 9) = .Cells(Rng(Xi).Row, "H")¡@'§_
- KK = "=IF(COUNTA(RC[-1]),""¬O"",IF(COUNTA(RC[-2]),""§_"",""""))"
- Ar(Xi, 10) = KK
- Ar(Xi, 11) = .Cells(Rng(Xi).Row, "I") ¡@'¿O
- Ar(Xi, 12) = .Cells(Rng(Xi).Row, "J")¡@'¤O
- Ar(Xi, 13) = .Cells(Rng(Xi).Row, "K")¡@'¿O
- Ar(Xi, 14) = .Cells(Rng(Xi).Row, "L")¡@'¤O
- ' Ar(Xi, 10) = .Cells(Rng(Xi).Row, "n") ' ** ½Ð°Ý³o¸Ì n¼g¨Ç¤°»ò? **
- ' Ar(Xi, 10) = .Cells(Rng(Xi).Row, "n") 'ªº³¡¤À¬O"¬O§_¦¨®×ªº¤½¦¡"=IF(COUNTA($I3),"¬O",IF(COUNTA($J3),"§_",""))
- Next
- End With
- With Sheets("ºî¦X¸ê®Æ®w")
- .Range("B5:O" & Rows.Count) = "" '²M°£ ¸ê®Æ
- .[B5].Resize(Rng.Count, 10) = Application.Transpose(Application.Transpose(Ar))
- 'Âà¸m°}¦C ¶ñ¤J:¸ê®Æ
- End With
- End Sub
½Æ»s¥N½X ÁÙ¦³¤W±- Set Rng = .Range("d7", .[d7].End(xlDown))
½Æ»s¥N½X ³oÓµ{¦¡½X¤¤ªº.[d7]¬O¥Nªí¤°»ò·N«ä¡H |
|