My anti-virus has deleted my vba macros!

  • Thread starter Thread starter pu2pe
  • Start date Start date
P

pu2pe

I'm an developing a professional application in Excel 2003, and
suddenly my own anti-virus has deleted two of my modules arguing the
virus "wm/baby.a" has been found.

Anyone has notice this before?? Any suggestions to rewrite the code and
avoid this very annoying problem??

Thanks in advance

José Pereda.
 
I've been able to extract the very few lines that cause the antivirus
to warn me with the virus wm/baby.a:

****************************************

Function getCompensaCreditos(ByVal sz As String) As String
Dim valPCr As Double
valPCr = getPorcentaje(sz)
If valPCr <= 0.9999 Then
getCompensaCreditos = "Text1"
ElseIf valPCr = 1 Then
getCompensaCreditos = "Text2"
End If
End Function

****************************************

where 'getPorcentaje' is another similar function.

If I change a little bit the code the warning disappears immediately.

Can anybody explain what's happening??

Thanks again.

José Pereda.


pu2pe ha escrito:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top