- ©«¤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 ©ó 2019-1-23 23:26 ½s¿è
¦U¦ì«e½ú±z¦n,
½Ð±Ð¤@¤U¦pªG¨t²Î©T©w®É¶¡·|²£¥X¶g´Á©Êªº²§±`³øªí,
¨äÀɮצWºÙ¬°W901~, W=WEEKLY,9=2019 ...
CIRCUS938 µoªí©ó 2019-1-23 20:21
Dim sStr$, sPath$
sPath = "D:\" ' ½Ð³]¬°¹ê»Ú¬d®Ö¸ê®Æ¬ÛÃöÀɮשҦbªº¥Ø¿ý
' ¤µ¤Ñ²Ä´X©P : ½d¨Ò¤é´Á - 2019/1/23 -> ²Ä 4 ¶g, sStr= "04"
sStr = Right("0" & Int((Weekday(Left(Date, InStrRev(Date, "/")) & "1", 2) - 2 + Day(Date)) / 7) + 1, 2)
' ¤µ¤Ñ²£¥Xªº²§±`©Ê³øªíÀɦW : W904.xls
sStr = "W" & Right(Year(Date), 1) & sStr & ".xls"
Workbooks.Open sPath & sStr
-----------------------------------------------------
¦ý¦pªG§A¥u¬O³æ¯Â¶}±Ò·í¤ë¨C¶gªº 4 ~ 5 ÓÀÉ®×:
Dim i%, sPath$
sPath = "D:\" ' ½Ð³]¬°¹ê»Ú¬d®Ö¸ê®Æ¬ÛÃöÀɮשҦbªº¥Ø¿ý
On Error Resume Next
For i = 1 To 5
Workbooks.Open sPath & "W" & Right(Year(Date), 1) & "0" & i & ".xls"
Next |
|