Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-09-2019, 04:23 PM
Darin Park Darin Park is offline Using VBA to enable a COM ADD-IN Windows 10 Using VBA to enable a COM ADD-IN Office 2019
Novice
Using VBA to enable a COM ADD-IN
 
Join Date: Dec 2019
Posts: 1
Darin Park is on a distinguished road
Question Using VBA to enable a COM ADD-IN

Hi guys. This is driving me crazy. I use Dragon NaturallySpeaking with Word quite a bit, however, Word was taking a hit on load up by the Nuance COM ADD-IN. I disable the add-in and only turned it on whenever I needed it. But it's a five mouse click operation that takes me out of my document and interrupts my workflow. I tried using macro recorder to capture my keystrokes of enabling the ADD-IN, but the macro recorder won't capture those keystrokes and mouse clicks to enable the ADD-IN.

So, my question is this. I don't know how to write the code for it so do any of you know how to write a code to:

(1) Click on File
(2) Click on Options
(3) Click on Add-Ins
(4) Click on COM Add-ins (and then the Go... button)
(5) Click on the tick box for the add-in and then click OK.

I know how to add that macro to the taskbar once coded so it's a single click. I just don't know how to code that in the first place.
Reply With Quote
  #2  
Old 12-10-2019, 03:26 AM
gmayor's Avatar
gmayor gmayor is offline Using VBA to enable a COM ADD-IN Windows 10 Using VBA to enable a COM ADD-IN Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Security may prevent this from working, but in theory the following should work

Code:
Sub Macro1()
Dim oAddIn As COMAddIn
    For Each oAddIn In Application.COMAddIns
'Debug.Print oAddIn.Description
        If oAddIn.Description Like "*Dragon*" Then
            oAddIn.Connect = Not oAddIn.Connect
            Exit For
        End If
    Next oAddIn
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Tags
dragon naturallyspeaking

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA code to enable a Word COM Add-In wordguy Word VBA 11 06-16-2017 12:26 PM
Help with Word VBA code to enable a COM Add-In wordguy Word VBA 0 06-13-2017 01:52 PM
Using VBA to enable a COM ADD-IN enable and disable macro MANOHAR Word VBA 2 01-14-2017 02:55 PM
Using VBA to enable a COM ADD-IN Force a user to enable macros in Powerpoint? Hide sheets until the "enable" button is clicked copleyr PowerPoint 1 10-07-2016 01:15 AM
How to enable PowerPoint Macros? delete123 PowerPoint 3 03-27-2012 06:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:33 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft