- ©«¤l
- 84
- ¥DÃD
- 13
- ºëµØ
- 0
- ¿n¤À
- 104
- ÂI¦W
- 0
- §@·~¨t²Î
- XP
- ³nÅ骩¥»
- SP3
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-8-10
- ³Ì«áµn¿ý
- 2018-4-21
|
¦^´_ 19# GBKEE
ª©¤j±z¦n¡I¦Ê¦£¤§¤¤¤S¥´ÂZ¤F¡C±zµ¹ªº»yªk°õ¦æ¤§«á¡AÁÙ¬O·|¦³»yªk¦b¡]©Ò¥H·|²£¥Í¿ù»~¡^¡A¦Ó¥t¥~¤@Óºô¶©Ò½Íªº§R°£¤u§@ªíªº¥¨¶°»yªk¡A¦bvba¦n¹³¤£¯à¨Ï¥Î¡A³Ì«á¤p§Ì¶¤F¤@±ø»·¸ô¡C´N¬O¡G
1.¥ý·s¼W¤@·s¤u§@ªí
2.½Æ»sn½Æ»sªº¤u§@ªí
3.¶K¤W®É¨Ï¥Î¦³±ø¥óªº¶K¤W¿ï¶µ¡]³o¼Ë´N¤£¤W½Æ»s¨ì¤u§@ªí¤ºªº»yªk¤F¡^
PasteSpecial Paste:=xlPasteValues
PasteSpecial Paste:=xlPasteFormats
4.µM«á´N¬O¤§«eªº»yªk
¥þ³¡¬O
Sub macor24()
'¸Ñ°£«OÅ@¡u¦¨ÁZÀx¦s¡vªí®æ¡õ'
Sheets("¦¨ÁZÀx¦s").Unprotect Password:="6323"
ActiveWorkbook.Unprotect Password:="6323"
'¸Ñ°£«OÅ@¡u¦¨ÁZÀx¦s¡vªí®æ¡ô'
Sheets.Add After:=Sheets(Sheets.Count)
Sheets("¦¨ÁZÀx¦s").Activate
Sheets("¦¨ÁZÀx¦s").Cells.Copy
Sheets(Sheets.Count).Range("a1").PasteSpecial Paste:=xlPasteValues
Sheets("¦¨ÁZÀx¦s").Activate
Sheets("¦¨ÁZÀx¦s").Cells.Copy
Sheets(Sheets.Count).Range("a1").PasteSpecial Paste:=xlPasteFormats
Dim a, b, u, v, r, n As String
a = Sheets("°ò¥»³]©w").Range("a6").Value
b = Sheets("°ò¥»³]©w").Range("a8").Value
u = Sheets("°ò¥»³]©w").Range("j1").Value
v = Sheets("°ò¥»³]©w").Range("j2").Value
r = "C:\Documents and Settings\Administrator\®à±\"
n = a & "¾Ç¦~«×" & b & "¾Ç´Á" & u & "¦~" & v & "¯Z¦¨ÁZÀÉ"
Sheets(Sheets.Count).Copy
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs Filename:=r & n & ".xls", _
FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
Workbooks(1).Activate
Sheets(Sheets.Count).Delete
'«OÅ@¡u¦¨ÁZÀx¦s¡vªí®æ¡õ'
Sheets("¦¨ÁZÀx¦s").Activate
ActiveSheet.EnableSelection = xlUnlockedCells
Sheets("¦¨ÁZÀx¦s").Protect Password:="6323"
ActiveWorkbook.Protect Password:="6323"
'«OÅ@¡u¦¨ÁZÀx¦s¡vªí®æ¡ô'
Workbooks(2).Activate
ActiveWorkbook.Close savechanges:=True
End Sub
¡]©êºp¡I¤£¬O¯Zªù§Ë©ò°Õ¡A·Q»¡¥H«á¦³¤H»Ýn¡A¥i¥H°Ñ¦Ò¤@¤U¡C¡^ |
|