|
Sub Macro1()
'
' Macro1 Macro
' 宏由 roy shou 编制,时间: 2005-4-4
'
Application.ScreenUpdating = False
ChDir "E:\夜审\"
Application.Goto Reference:="LLL"
Selection.Copy
p = Range("d2").Value
Range("z6").Offset(0, p).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.Goto Reference:="RRR"
Application.CutCopyMode = False
Selection.Copy
Range("bm5").Offset(0, p).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Range("a1").Select
ChDir "E:\夜审\"
Windows("Eb.xls").Activate
ActiveWorkbook.SaveAs FileName:="eb" & Worksheets("EB").Range("o4").Value & ".xLS", FileFormat:=xlExcel9795, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:= _
False, CreateBackup:=False
ActiveWorkbook.SaveAs FileName:="E:\夜审\Eb.xls", FileFormat _
:=xlExcel9795, Password:="", WriteResPassword:="", ReadOnlyRecommended:= _
False, CreateBackup:=False
End Sub
此为Excel 2003的宏,那位大侠帮我修改一下
谢谢
|
|