Avast! Antispam toolbar

Status
Not open for further replies.

Victor Delta

Senior Member
Outlook version
Outlook 2021 64 bit
Email Account
POP3
Does anyone know a permanent way of getting rid of the annoying Avast toolbar in Outlook (2003)? I have tried several of the methods given on web forums but it keeps coming back. What about a macro which disables the toolbar every time one opens Outlook - surely this would work?
 
Does anyone know a permanent way of getting rid of the annoying Avast toolbar in Outlook (2003)? I have tried several of the methods given on web forums but it keeps coming back. What about a macro which disables the toolbar every time one opens Outlook - surely this would work?

Finally found the fix:

  • Shut down Outlook

  • open avast
  • go to settings>troubleshooting
  • deselect "self-defense"

  • go to the avast folder
  • locate the files:
  • asOutExt.dll
  • asOutExt64.dll

  • rename them:

  • asOutExt_disabled.dll
  • asOutExt64_disabled.dll

  • reopen avast
  • go to self-defense (previous) and check box to re-enable

  • Re-open Outlook

Hope this helps
 
Hi deltaecho5, Many thanks for that although, to be honest, it's one of the methods I've tried in the past. As you say, it does work - but only until the next Avast Programme update, so you have to keep repeating it. That's why I wondered if anyone knew how to write an auto-open macro which would disable the Avast toolbar every time Outlook opens. It might be a better solution in the long run. Victor Delta
 
Not a macro, but you can use group policy. I think it works in 2003, I'll have to check.

In 2013, this forces outlook to always disable one addin (0 value, I think its McAfee addin) and always enable others.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\office\15.0\outlook\resiliency\addinlist]

"UmOutlookAddin.FormRegionAddin"="1"

"OscAddin.Connect"="1"

"Mskoladd.MskOLAddIn"="0"

"Microsoft.BusinessSolutions.eCRM.OutlookAddIn.Connect.5"="1"

I'm not sure if outlook 2003's Resiliency key, which is under the office keys, works for addins - you can try it. The key is -

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Resiliency

get the name to use from here

HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins

or here

HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Addins
 
Diane

Many thanks for that. However, I'm making progress on the macro front. When I open an email, this seems to do the trick (I’m currently running the macro with a toolbar button):

Sub Disable_Avast_Toolbar()

ActiveInspector.CommandBars("avast! Antispam").Visible = False

End Sub

However, one has to do it every time one opens an email – rather laborious!

Is there any way to automatically run the macro every time one opens an email, just like the AutoOpen macros in Word etc?

Thanks.



 
you need to use inspectors - should be able to use your one line code in the msgopen sub rather than calling it.

Code:
Dim WithEvents msg As Outlook.MailItem 
 
Dim WithEvents colInsp As Outlook.Inspectors 
 
Private Sub Application_Startup()
   Set colInsp = Application.Inspectors 
 
End Sub 
 
Private Sub colInsp_NewInspector(ByVal Inspector As Inspector)
   If Inspector.CurrentItem.Class = olMail Then
       Set msg = Inspector.CurrentItem
   End If 
 
End Sub 
 
Private Sub msg_Open(Cancel As Boolean)
   Call YourProcedure(msg) 
 
End Sub 
 
Sub YourProcedure(myMsg As Outlook.MailItem)
   ' this is where you do the real work
   MsgBox myMsg.Subject 
 
End Sub
 
Diane

Thank you so much for that – what a lot of code is needed for a simple operation!

However, I must have done something wrong. I copied your code into ThisOutlookSession and then added my one line (from the macro) below ‘this is where you do the real work’.

However, when I now open Outlook, an error message pops up highlighting the first line of the VBA code (WithEvents msg As Outlook.MailItem) indicating there is a compile error – invalid attribute in Sub or function…?

Any ideas please…?

Thanks again.
 
Did you put it in ThisOutlookSession? That line needs to be at the top of the page, after option explicit (if you are using it). You put the macros in this order:

option explicit

all global dim statements and anything that is outside of a sub.

application_startup, inspector, Initialize macros

event macros

regular macros (which can go into modules instead)
 
Many thanks. Moved your code to the top of ThisOutlookSession and problem disappeared.

However, when I open an email the debugger pops up highlighting my single line of code in the following sub – hope I put it in the right place?

Sub YourProcedure(myMsg As Outlook.MailItem)

' this is whereyou do the real work

ActiveInspector.CommandBars("avast! Antispam").Visible = False

MsgBox myMsg.Subject

End Sub
 
Diane



Don't know what I'm doing wrong here but I bet it's something pretty simple! Since I couldn't get the debugger to like my single line of code, I tried calling the macro that works when I trigger it manually instead (see below). However, the debugger doesn't like that either! (When I rem the red line out, the message box with subject displays correctly when I open an email, so your code is working as it should)



Any more ideas please?




Code:
Dim WithEvents msg As Outlook.MailItem
 
 
Dim WithEvents colInsp As Outlook.Inspectors
 
 

 
 
Private Sub Application_Startup()
   Set colInsp = Application.Inspectors
 
 

 
 
End Sub
 
 

 
 
Private Sub colInsp_NewInspector(ByVal Inspector As Inspector)
   If Inspector.currentItem.Class = olMail Then
       Set msg = Inspector.currentItem
   End If
 
 

 
 
End Sub
 
 

 
 
Private Sub msg_Open(Cancel As Boolean)
   Call YourProcedure(msg)
 
 

 
 
End Sub
 
 

 
 
Sub YourProcedure(myMsg As Outlook.MailItem)
   ' this is where you do the real work
   MsgBox myMsg.Subject
   [COLOR="#FF0000"]Call Disable_Avast_Toolbar[/COLOR]
   
 
 
End Sub
 
 

 
 
Sub Disable_Avast_Toolbar()
   
ActiveInspector.CommandBars("avast! Antispam").Visible = False

 
 
End Sub
 
I don't have avast but i tried it with the default toolbars and this line errors for me - I thought it was user error on my part.

ActiveInspector.CommandBars("avast! Antispam").Visible = False
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
V Outlook problem after removing avast Using Outlook 1
Rupert Dragwater Facebook notifications marked as Norton Antispam Using Outlook 6
T Outlook AntiSpam with VBA Outlook VBA and Custom Forms 1
A VBA Script to Forward Spam to AntiSpam Provider Using "Blank" Form Outlook VBA and Custom Forms 2
H Outlook 2010 Antispam Addin Not Available Using Outlook 1
A Quick Access Toolbar Not Showing Description Using Outlook 0
V How to add 'Previous Item' and 'Next Item' to the Quick Access Toolbar Using Outlook 1
J Text icon in Quick Access toolbar ? Using Outlook 2
G How to add a folder shortcut to outlook quick access toolbar? Using Outlook 6
O Outlook 365 - Toolbar - Close all items - missing? Using Outlook 3
O Windows 1803 update : QAT and toolbar changed, language pack gone... Using Outlook 5
R Categorize Button in Quick Access Toolbar Disappears on New Email Using Outlook 1
F want inbox on toolbar to reference icloud messages Using Outlook 2
Diane Poremsky Synchronize Quick Access Toolbar and Ribbons? Using Outlook 0
soadfan Enable all rules from toolbar button? Outlook VBA and Custom Forms 3
J Adding Reply & Delete to main toolbar? Using Outlook 0
Diane Poremsky Customize the Outlook Toolbar, Ribbon or QAT Using Outlook 0
L Outlook 2007 Custom Form and Toolbar Not Working Using Outlook 5
E Outlook 2007: Problem with "Move to Folder >" button on toolbar Using Outlook 6
B Outlook 2007 Save Current View,Font,Toolbar Settings Using Outlook 6
L Outlook 2007 Toolbar Export and Import Using Outlook 7
B Trouble Locating Tools Menu since There's No Standard Toolbar in Office 2010 Using Outlook 1
N Combobox in outlook add ons toolbar not firing event on main window resized Using Outlook 3
B Outlook Toolbar disabled Using Outlook 1
P Can't add a custom hyperlink to toolbar in OL 2010 Using Outlook 1
E Blank Print Preview when access via the Quick Access toolbar Using Outlook 3
Commodore Back/Forward toolbar buttons with pull-down history? Using Outlook 5
D How can I add a user created template to the toolbar Outlook VBA and Custom Forms 1
D How do I run a rule by using a toolbar icon? Outlook VBA and Custom Forms 4
S How to Create Buttons in email body / toolbar Outlook VBA and Custom Forms 3
P Problem in temporary type toolbar Outlook VBA and Custom Forms 1
P Problem in permanent type add-in toolbar Outlook VBA and Custom Forms 6
P Create TextBox in Outlook toolbar Outlook VBA and Custom Forms 1
T Quick Access Toolbar Using Outlook 3
S inspector toolbar buttons get multiple events Outlook VBA and Custom Forms 3
S toolbar visible state change event Outlook VBA and Custom Forms 1
S show icon while toolbar button is disabled. Outlook VBA and Custom Forms 1
S Quick access toolbar in inspector window Outlook VBA and Custom Forms 3
S Persist toolbar visible state Outlook VBA and Custom Forms 5
J Excel 2002 Forms toolbar Outlook VBA and Custom Forms 1
R How to implement customize toolbar in outlook? Outlook VBA and Custom Forms 1
J Toolbar button to process current mailitem Outlook VBA and Custom Forms 1
C Re: Hide BCM toolbar BCM (Business Contact Manager) 1
T Creating toolbar in new Explorer Outlook VBA and Custom Forms 3
R How to add toolbar to MailEditor for outlook? Outlook VBA and Custom Forms 14
H Add an item to the "new" - option in outlook toolbar Outlook VBA and Custom Forms 6
Q Re: Detecting whether a toolbar is and should be shown Outlook VBA and Custom Forms 5

Similar threads

Back
Top