- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
|
¦^´_ 1# RCRG
¸Õ¸Õ¬Ý- Option Explicit
- Sub Ex()
- Dim xDay As Date, i As Date, x As Date
- On Error Resume Next
- AG:
- Do
- xDay = InputBox("¿é¤J¤é´Á", "¤u§@ªí¤é´Á", Date)
- If Err > 0 Then Err.Clear: GoTo AG ' ¤é´Á®æ¦¡¿ù»~:µ{¦¡²¾¨ì AG °õ¦æ
- x = MsgBox("½T©w¤é´Á ¬°: " & Format(xDay, "Dddddd"), vbYesNoCancel, "¤u§@ªí¤é´Á")
- If x = vbCancel Then Exit Sub '¨ú®øÁä: Â÷¶}³oµ{¦¡
- Loop Until x = vbYes '½T©wÁä: Â÷¶}³o°j°é
- On Error GoTo Er
- Application.DisplayAlerts = False
- For i = xDay To xDay + 15 * 2 Step 4 '¶¡¹j4¤Ñ
- For x = i To i + 1 '³sÄò2¤Ñ
- Sheets("ì©lÀÉ").Copy after:=Sheets(Sheets.Count)
- ActiveSheet.Name = Format(x, "Dddddd") '¦³³o¤u§@ªí¤é´Áµ{¦¡©Î¦³¿ù»~
- Next
- Next
- Application.DisplayAlerts = True
- Exit Sub
- Er: '³B¸Ì¤u§@©R¦Wªº¿ù»~
- Sheets(Format(x, "Dddddd")).Delete
- Resume '¦^¨ì¿ù»~ªºµ{¦¡½X
- End Sub
½Æ»s¥N½X |
|