Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Excel macro is recognised as a virus

I have written a macro to connect to Outlook and send emails according to a
list in a worksheet. For about a day, some of the classes and modules kept
disappearing from the workbook when I saved it. I have now tracked this down
to Symantec Antivirus thinking my workbook had a virus and helpfully deleting
all my hard work!

What can I do to avoid this happening? I know this is an awkward question
because this is the way many viruses work. However, Outlook has an object
model that is accessible from Excel VBA and I have a legitimate need to do
this.

Is there anything I can do in the way I write the code? Or will code signing
help?

Thanks for any thoughts and suggestions.

Julian
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Excel macro is recognised as a virus

Julian,

You need to set SAV's bloodhound feature to ignore your documents, or at least, the documents that
you put into a specific folder. If you have an IT department, they will be the ones who will be
able to do it. Otherwise, I think you can set the autoprotect options through the AV menu.

HTH,
Bernie
MS Excel MVP


"Julian" wrote in message
...
I have written a macro to connect to Outlook and send emails according to a
list in a worksheet. For about a day, some of the classes and modules kept
disappearing from the workbook when I saved it. I have now tracked this down
to Symantec Antivirus thinking my workbook had a virus and helpfully deleting
all my hard work!

What can I do to avoid this happening? I know this is an awkward question
because this is the way many viruses work. However, Outlook has an object
model that is accessible from Excel VBA and I have a legitimate need to do
this.

Is there anything I can do in the way I write the code? Or will code signing
help?

Thanks for any thoughts and suggestions.

Julian



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Excel macro is recognised as a virus

Thanks. I've done that but I'd rather be able to create my code in a way that
doesn't look like a virus, which it isn't. Macros and VBA start to lose their
appeal if you can't create them for someone else without finding a way to
exclude them from virus checking. Many corporates won't allow the user this
ability to config the AV.

Julian

"Bernie Deitrick" wrote:

Julian,

You need to set SAV's bloodhound feature to ignore your documents, or at least, the documents that
you put into a specific folder. If you have an IT department, they will be the ones who will be
able to do it. Otherwise, I think you can set the autoprotect options through the AV menu.

HTH,
Bernie
MS Excel MVP


"Julian" wrote in message
...
I have written a macro to connect to Outlook and send emails according to a
list in a worksheet. For about a day, some of the classes and modules kept
disappearing from the workbook when I saved it. I have now tracked this down
to Symantec Antivirus thinking my workbook had a virus and helpfully deleting
all my hard work!

What can I do to avoid this happening? I know this is an awkward question
because this is the way many viruses work. However, Outlook has an object
model that is accessible from Excel VBA and I have a legitimate need to do
this.

Is there anything I can do in the way I write the code? Or will code signing
help?

Thanks for any thoughts and suggestions.

Julian




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Excel macro is recognised as a virus

Unfortunately, connecting to Outlook and sending email is a signature feature of many macro
viruses - the first office virus did exactly that. So, if you don't want it to look like a virus,
don't use Outlook, and don't modify code in the VBProject using code. Since that is what you want
to do - you're out of luck, unless your store the file with the macro code in a place that isn't
scanned - good luck.
--
HTH,
Bernie
MS Excel MVP


"Julian" wrote in message
...
Thanks. I've done that but I'd rather be able to create my code in a way that
doesn't look like a virus, which it isn't. Macros and VBA start to lose their
appeal if you can't create them for someone else without finding a way to
exclude them from virus checking. Many corporates won't allow the user this
ability to config the AV.

Julian

"Bernie Deitrick" wrote:

Julian,

You need to set SAV's bloodhound feature to ignore your documents, or at least, the documents
that
you put into a specific folder. If you have an IT department, they will be the ones who will be
able to do it. Otherwise, I think you can set the autoprotect options through the AV menu.

HTH,
Bernie
MS Excel MVP


"Julian" wrote in message
...
I have written a macro to connect to Outlook and send emails according to a
list in a worksheet. For about a day, some of the classes and modules kept
disappearing from the workbook when I saved it. I have now tracked this down
to Symantec Antivirus thinking my workbook had a virus and helpfully deleting
all my hard work!

What can I do to avoid this happening? I know this is an awkward question
because this is the way many viruses work. However, Outlook has an object
model that is accessible from Excel VBA and I have a legitimate need to do
this.

Is there anything I can do in the way I write the code? Or will code signing
help?

Thanks for any thoughts and suggestions.

Julian






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 389
Default Excel macro is recognised as a virus

Code can be "restructured" to get around the Bloodhound heuristics. A while
ago I discovered a way to get around the virus detection while running code
from the Extensibility Library (code that manipulates code). If you're
interested email me privately. Email is on the website.


--
Tim Zych
www.higherdata.com
Compare data in worksheets and find differences with Workbook Compare
A free, powerful, flexible Excel utility


"Julian" wrote in message
...
I have written a macro to connect to Outlook and send emails according to a
list in a worksheet. For about a day, some of the classes and modules kept
disappearing from the workbook when I saved it. I have now tracked this
down
to Symantec Antivirus thinking my workbook had a virus and helpfully
deleting
all my hard work!

What can I do to avoid this happening? I know this is an awkward question
because this is the way many viruses work. However, Outlook has an object
model that is accessible from Excel VBA and I have a legitimate need to do
this.

Is there anything I can do in the way I write the code? Or will code
signing
help?

Thanks for any thoughts and suggestions.

Julian





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Are you telling me all a virus has to do is run from XLSTART toovercome Excel macro security? [email protected] Excel Programming 1 May 22nd 08 11:01 PM
variable not recognised in embedded macro R..VENKATARAMAN Excel Programming 5 June 25th 06 02:55 AM
My first macro - doesnt work - function not recognised James Cornthwaite Excel Worksheet Functions 2 May 14th 06 05:13 PM
Excel Macro & Virus Thomas F Excel Programming 0 May 7th 04 07:17 PM


All times are GMT +1. The time now is 04:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"