- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 258
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-11-28
|
¦^´_ 11# peter9527
¨º´Nn§ä¨ì³Ì¤j½s¸¹ªºÀɦW- Function topfile(fn$, fd$) As Integer
- fs = Dir(fd & fn)
- Do Until fs = ""
- If Val(Replace(fs, Val(fn), "")) > topfile Then topfile = Val(Replace(fs, Val(fn), ""))
- fs = Dir
- Loop
- End Function
- Sub Save_File()
- Dim f$
- d = Format(Date, "yymm")
- f = ThisWorkbook.Path & "\"
- k = Format(topfile(d & "*.xls", f) + 1, "00")
- fs = f & d & k & ".xls"
- yn = MsgBox("¬O§_¥t¦s¬°" & d & k & ".xls", vbYesNo)
- If yn = 6 Then ThisWorkbook.SaveAs fs
- End Sub
½Æ»s¥N½X |
|