Results 1 to 9 of 9

Thread: Outlook addin Not working

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    232

    Outlook addin Not working

    I wrote an outlook addin which was working fine.
    suddenly it stopped working on many peoples machines.
    I have no idea what could have happened?
    Does anyone know any DLL's which may have been effected?
    ANY IDEAS WOULD BE HELPFUL.
    Thanks

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Outlook addin Not working

    Without knowing any specifics its very hard to help.

    Are they all running the same version of Outlook?
    Which one(s)?
    Did they just install XP SP-2?
    Did they do any Office updates?
    Does it show on the "Disabled Items" menu listing in Help > Disabled Items...
    What does your addin do?
    Can you post the OnConnection code?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    232

    Re: Outlook addin Not working

    Thanks for the response.
    Yes all the people having problems are all running outlook 2000.
    (I do have users who are running outlook 2003 and it works fine)
    No I dont think they updated or installed anything recently.
    What do you mean by
    "Does it show on the "Disabled Items" menu listing in Help > Disabled Items..."?
    My addin basically calls vbform which allows the user to save their email or email attachment to a specific folder on the network.
    I dont have any code in the onConnection function,
    Here is my on startUPComplete Code:
    Code:
    Private Sub IDTExtensibility2_OnStartupComplete(custom() As Variant)
        ' on start up
        Initialize_handler
        Dim oExplorer As Outlook.Explorer
        'Dim oExplorer As Object
        Set oExplorer = objApp.ActiveExplorer
        Set oExplorer1 = objApp.ActiveExplorer
        
        Dim cb As CommandBar
        Dim CBExists As Boolean
        Dim CBStw As Boolean
        CBStw = False
        CBExists = False
        Dim con As Office.CommandBarButton
          
       Dim tmpBar As CommandBar
        For Each tmpBar In objApp.ActiveExplorer.CommandBars
            If tmpBar.Name = "AddinBar" Then
                CBExists = True
                Exit For
            End If
        Next
    
    PLEASE LET ME KNOW IF YOU HAVE ANY CLUES!
    THANKS AGAIN....
     
       'Set oEvt = New CBTnEvent
       Set oStw = New CBSaveToweb
       If CBExists = False Then
            Set myCommandbar = objApp.ActiveExplorer.CommandBars.Add("AddinBar")
            Add_CtlBtn (False)
       Else
            Set myCommandbar = objApp.ActiveExplorer.CommandBars.Item("AddinBar")
            Set_CtlBtn
       End If
       cb.Visible = True
       cb.Position = msoBarTop
       Set objApp = Nothing
       Set oExplorer = Nothing
       Set cb = Nothing
       'Set oEvt = Nothing
    End Sub

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Outlook addin Not working

    Is your objApp object being set from the OnConnection procedure Application parameter?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    232

    Re: Outlook addin Not working

    I forgot to include this.
    these are my global declarations.

    Option Explicit
    Implements IDTExtensibility2
    Dim oBtns As New Collection
    Dim oBtnsI As New Collection
    Dim i As Integer
    'Dim strPath As String
    Dim WithEvents oMailItem As Outlook.MailItem
    Dim WithEvents oExplorer1 As Outlook.Explorer
    Dim WithEvents myInspectors As Inspectors
    Dim WithEvents myInspector As Inspector
    Dim myCommandbar As CommandBar
    'Dim oEvt As CBTnEvent
    Dim oStw As CBSaveToweb
    Dim oStw2 As CBSaveToweb
    'Dim oEvtI As CBTnEvent
    Dim oStwI As CBSaveToweb
    Dim oStw2I As CBSaveToweb
    Dim objApp As New Outlook.Application
    Thanks.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Outlook addin Not working

    You installed the addin through Outlooks "COM Add-Ins..." button?

    The disable items form will show you a listing of which addins are disabled because of errors or security issues.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    232

    Re: Outlook addin Not working

    Where Is The disabled Items Form?

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Outlook addin Not working

    In Outlook go to the menu "Help > Disabled Items..." on the system with the problem.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Outlook addin Not working

    Sorry, just noticed that I missed the About part.

    "Help > About > Disabled Items..."


    Also, here is a link at MS on Add-Ins that may help.

    http://msdn.microsoft.com/library/de...tionmethod.asp
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width