VBA / Generic Virus detected

Emjaye

Board Regular
Joined
Oct 3, 2003
Messages
89
Hi

Using Windows & Excel XP in conjunction with McAfee VirusScan on the agency network.
In my WB in question I have VBA which strips VBA from a worksheet under certain conditions (i.e. when the worksheet is COPIED) and writes in 1 remark line.
However the McAfee VirusScan catches it as a virus when the workbook is either saved or closed... (when the worksheet is not being copied)... with the message of "Detected: VBA/Generic // Type: Virus // Status: Cleaned"

The VBA "strip" code is placed in its own module, not in a WB or WS event, and nor is it called automatically, the user needs to press a button on the worksheet to activate the routine.

It's more of an annoyance than anything critical, however I would like a way to stop the over zealous Viruschecker catching the WB, which is virus free (checked with other Viruscheckers at home) everytime is is saved or closed.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Remove any Standard Module, like: Module1

You cannot remove Sheet Modules, or ThisWorkbook Modules, but you can remove any code from them. Slso UserForm Modules need to be cleaned of code.

If any of the above remain you will get that message!

No-Way around this, if there was everyone would use it to pass viruses.

If Excel is flaging your code then write a Self-Certification.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top