How can I turn off the "This may be a virus" alert?

Posted on 2006-04-18
Last Modified: 2010-04-08
I have this outlook script...

Private Sub CommandButton1_Click()

'Create Email Button
Call AddAttachment

End Sub
Sub AddAttachment()
    Dim X As Integer
    Dim strFile As String
    Dim strRTVNum As String
    Dim myOlApp As New Outlook.Application
    Dim myItem As Outlook.MailItem
    Dim myAttachments As Outlook.Attachments
    Set FileSys = New FileSystemObject
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set Folder = fso.GetFolder("E:\RTV\Batch")
    Set Files = Folder.Files
    On Error Resume Next
    For Each File In Files
        Set myItem = myOlApp.CreateItem(olMailItem)
        Set myAttachments = myItem.Attachments
        strFile = File.Name & ""
            For X = 1 To Len(strFile)
                If Mid(strFile, X, 1) = " " Then
                    strRTVNum = Left(strFile, X - 1)
                    Exit For
                End If
            Next X
        myItem.To = ""
        myItem.Subject = strRTVNum
        myItem.Body = ""
        myAttachments.Add "E:\RTV\Batch\" + strFile, olByValue, 1, ""
End Sub

When I send it, I get this ALERT this may be a virus trying to automatically send out email through your system. Then after about 8 seconds I have a YES button that becomes activated and I can click it to send the email. Well, as you can assume, there is often about 80 files that I am having to send using this method and clicking YES every 8 seconds is driving me nuts. How do I get around this?

Thanks much.
Question by:TJenner2
    1 Comment
    LVL 14

    Accepted Solution

    you gotta love microsoft's "dumb it down" security methods... keeping people from using their computers the way they need to.

    see this paq for some ideas..

    see also this reference:

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
    Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now