n¦p¦ó¤£¨Ï¥ÎVBA¨Ì¤ë¥÷°µ²Îp
- ©«¤l
- 97
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2019-5-7
- ³Ì«áµn¿ý
- 2022-8-25
|
n¦p¦ó¤£¨Ï¥ÎVBA¨Ì¤ë¥÷°µ²Îp
|
|
|
|
|
|
- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
¥»©«³Ì«á¥Ñ luhpro ©ó 2021-3-6 05:09 ½s¿è
¦pÃD¡A½Ð°Ýn¦p¦ó¨Ì·Ó¤ë¥÷°µ²Îp¨ì¤U¤èÄæ¦ì¤¤ªº¥ó¼Æ¤Î¤Ñ¼Æ???
ªþÀÉ
s13030029 µoªí©ó 2021-3-5 09:52
¨Ì§A©ÒÁ|ªº¨Ò¤l§Ú²q´ú¬Y¤ë¥÷¸gpºâ«áªº¤Ñ¼Æ¬O¥§¡¤Ñ¼Æ : (ÂIÀ» "¶}©l²Îp" «ö¶s´N·|¶}©lpºâ)
===== Sheet1 =====- Private Sub CommandButton1_Click()
- Dim iI%, iMon%
- Dim lRow&
- With Sheets("³B²z¤Ñ¼Æ²Îpªí")
- .Range(.[B22], .[M23]) = 0 ' ²Îp¸ê®ÆÂk¹s
- End With
- Application.OnTime Now + TimeValue("00:00:01"), "SumData" ' ©µ¿ð1¬í¥H¯à©úÅã¬Ý¥X¸ê®Æ¦³Âk¹s
- End Sub
½Æ»s¥N½X ===== Module1=====- Public Sub SumData()
- With Sheets("³B²z¤Ñ¼Æ²Îpªí")
- For lRow = 5 To 19 ' ²ÎpÓ¤ë¥÷¤Ñ¼Æ©M¥ó¼Æ
- With .Cells(lRow, 1)
- If .Value = "" Then Exit For
- iMon = Month(.Value)
- End With
- For iI = 0 To 1
- .Cells(22 + iI, iMon + 1) = .Cells(22 + iI, iMon + 1) + .Cells(lRow, 9 + iI)
- Next
- Next
- For iI = 2 To 13 ' pºâ¥§¡¤Ñ¼Æ
- If .Cells(23, iI) > 0 Then .Cells(22, iI) = .Cells(22, iI) / .Cells(23, iI)
- Next
- End With
- End Sub
½Æ»s¥N½X
«È¤á©ê«è¡B«È¶D¡B°h³f³B²z¤Ñ¼Æ²Îpªí-ans.zip (15.84 KB)
|
|
|
|
|
|
|