- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 41
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2025-2-16
![2024¦~¥þ¶Ô¼ú³¹ 2024¦~¥þ¶Ô¼ú³¹](images/common/dragon2024.png) ![2023¦~¥þ¶Ô¼ú³¹ 2023¦~¥þ¶Ô¼ú³¹](images/common/2023.png) ![2022ªê¦~¥þ¶Ô¼ú³¹ 2022ªê¦~¥þ¶Ô¼ú³¹](images/common/hu.gif) ![2021¤û¦~¥þ¶Ô¼ú³¹ 2021¤û¦~¥þ¶Ô¼ú³¹](images/common/niu.gif) ![2020¹«¦~¥þ¶Ô¼ú³¹ 2020¹«¦~¥þ¶Ô¼ú³¹](images/common/shu.gif) ![2019 ½Þ¦~¥þ¶Ô¼ú³¹ 2019 ½Þ¦~¥þ¶Ô¼ú³¹](images/common/zhu.gif) ![2018 ª¯¦~¥þ¶Ô¼ú³¹ 2018 ª¯¦~¥þ¶Ô¼ú³¹](images/common/gou.gif) ![2017 Âû¦~¥þ¶Ô¼ú³¹ 2017 Âû¦~¥þ¶Ô¼ú³¹](images/common/ji.gif) ![2016µU¦~¥þ¶Ô¼ú³¹ 2016µU¦~¥þ¶Ô¼ú³¹](images/common/hou.gif) ![2015¦Ï¦~¥þ¶Ô¼ú³¹ 2015¦Ï¦~¥þ¶Ô¼ú³¹](images/common/yang.gif) ![2014°¨¦~¥þ¶Ô¼ú³¹ 2014°¨¦~¥þ¶Ô¼ú³¹](images/common/ma.gif) ![2013³D¦~¥þ¶Ô¼ú³¹ 2013³D¦~¥þ¶Ô¼ú³¹](images/common/she.gif) ![2012Às¦~¥þ¶Ô¼ú³¹ 2012Às¦~¥þ¶Ô¼ú³¹](images/common/long.gif) ![½×¾Â°^Äm¾±³¹ ½×¾Â°^Äm¾±³¹](images/common/medal5.gif) ![¼ö¤ß¤½¯q¾±³¹ ¼ö¤ß¤½¯q¾±³¹](images/common/medal15.gif) ![2011¨ß¦~¥þ¶Ô¼ú³¹ 2011¨ß¦~¥þ¶Ô¼ú³¹](images/common/tu.gif)
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2014-5-28 13:45 ½s¿è
¦^´_ 3# reangame
¦æ¨Æ¾äªº»s§@¡AÀ³¸Ón¦³¿ï¾Ü¦~¤ëªº¾÷¨î
³]¸m2Ó¤U©Ô¿ï³æ¦p°Êµe
¤ë¾ä§¹¦¨«á¡A¦æ¨Æªí³æ§A¦ü¥G¤w¸gª¾¹D¼g¦¨¸ê®Æ®w
¦A±Nn¼g¤J¦æ¨Æ¤ë¾äªºÄæ¦ì§ì¥X¨Ó§Y¥i
¤ë¾ä.zip (47.18 KB)
¤u§@ªí¼Ò²Õµ{¦¡½X- Private Sub ComboBox1_Change()
- If ComboBox1 <> "" And ComboBox2 <> "" Then ¦æ¨Æ¾ä»s§@
- End Sub
- Private Sub ComboBox2_Change()
- If ComboBox1 <> "" And ComboBox2 <> "" Then ¦æ¨Æ¾ä»s§@
- End Sub
- Sub ¦æ¨Æ¾ä»s§@()
- Dim Ob As Shape, A As Range
- For Each Ob In Me.Shapes
- If Not Ob.Name Like "ComboBox*" Then Ob.Delete
- Next
- [B3:H8].Clear
- day1 = DateSerial(Val(ComboBox1), Val(ComboBox2), 1)
- day2 = DateSerial(Val(ComboBox1), Val(ComboBox2) + 1, 0)
- w = Weekday(day1, vbMonday)
- For i = day1 To day2
- k = Int((Day(i) + w - 2) / 7)
- s = Weekday(i, 2)
- Set A = [A3].Offset(k, s)
- If s >= 6 Then A.Interior.ColorIndex = 36
- With Me.Shapes.AddLabel(msoTextOrientationHorizontal, A.Left, A.Top, 10, 72)
- .TextFrame.AutoSize = True
- .TextFrame.Characters.Caption = Day(i)
- End With
- Next
- With Range([B3], Cells(A.Row, 8))
- For j = 1 To 4
- With .Borders(j)
- .LineStyle = 1
- .Weight = 2
- .ColorIndex = xlColorIndexAutomatic
- End With
- Next
- End With
- End Sub
- Private Sub Worksheet_Activate()
- With ComboBox1
- For i = .ListCount - 1 To 0 Step -1
- .RemoveItem i
- Next
- For Y = 1999 To 2100
- .AddItem Y
- Next
- .Text = Year(Date)
- End With
- With ComboBox2
- For i = .ListCount - 1 To 0 Step -1
- .RemoveItem i
- Next
- For Y = 1 To 12
- .AddItem Y
- Next
- .Text = Month(Date)
- End With
- End Sub
½Æ»s¥N½X |
|