- ©«¤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
        
|
¦^´_ 11# ten999
¸Õ¸Õ¬Ý- Sub testCr()
- Dim selDate As Date, °_©l¤é´Á As Date, µ²§ô¤é´Á As Date
- Dim Rng As Range
- On Error Resume Next 'ªí¥Ü·í¤@Ó°õ¦æ¶¥¬q¿ù»~²£¥Í®É¡Aµ{¦¡±±¨î¥ß¨è¨ìµo¥Í¿ù»~³¯z¦¡±µ¤U¥hªº³¯z¦¡¡A¦ÓÄ~Äò°õ¦æ¤U¥h
- °_©l¤é´Á = InputBox("¿é¤J°_©l¤é´Á")
- If °_©l¤é´Á = False Then Exit Sub
- µ²§ô¤é´Á = InputBox("¿é¤J µ²§ô¤é´Á")
- If µ²§ô¤é´Á = False Then Exit Sub
- On Error GoTo 0 '°±¤î²{¦bµ{§ÇùØ¥ô¦ó¤w±Ò°Êªº¿ù»~³B²zµ{¦¡
- For selDate = °_©l¤é´Á To µ²§ô¤é´Á
- Set Rng = Sheets("«D¥æ©ö¤é").Cells.Find(selDate, LookIn:=xlValues) '¦b«D¥æ©ö¤é¤¤´M§ä¤é´Á
- If Rng Is Nothing Then '«D¥æ©ö¤é¤¤§ä¤£¨ì¤é´Á
- Select Case Weekday(selDate)
- Case 2 To 6 '¶g¤@¨ì¶g¤
- saveCSVfmURL selDate
- Case Else '-> Case 1 , 7 '°²¤é
- Set Rng = Sheets("¸É¥æ©ö¤é").Cells.Find(selDate, LookIn:=xlValues) '°²¤é¤¤´M§ä¸É¥æ©ö¤é¤é´Á
- If Not Rng Is Nothing Then saveCSVfmURL selDate '§ä¨ì¤é´Á
- End Select
- End If
- Next
- End Sub
½Æ»s¥N½X |
|