KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: trouble running a word macro from kb
Topic Summary:
Created On: 05/03/2020 10:54 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 trouble running a word macro from kb   - dicdoc - 05/03/2020 10:54 AM  
 trouble running a word macro from kb   - kkkwj - 05/04/2020 01:14 PM  
 trouble running a word macro from kb   - dicdoc - 05/06/2020 06:29 PM  
Keyword
 05/03/2020 10:54 AM
User is offline View Users Profile Print this message

Author Icon
dicdoc
Top-Tier Member

Posts: 207
Joined: 07/31/2014

my KB code is only this :

it's an application command for Word context
Word.Application.Run "Aff1PageHaut"
I referenced Microsoft Word Obj Libr

I go in word, and execute my KB command.
I got an error message : execution error 4248, command non available, no document is open

What Am I missing ?
Thanks


-------------------------

Memory: 16GB Microphone Brand and Model: Rec Mic II Operating System: win 10, latest update; Surface Book 2, Processor (CPU) Type & Speed: I7 8650 Soundcard Brand and Model: none Speech Software: Dragon Medical Practice Edition, french version: 4.0 Using KnowBrainer?: No



 05/04/2020 01:14 PM
User is offline View Users Profile Print this message

Author Icon
kkkwj
Top-Tier Member

Posts: 421
Joined: 11/05/2015

I tried using the 'Application.Run "WordVBAMacroName" some time ago because I thought it worked, but I couldn't get it to work recently.

All my other word macros use this kind of code:

Dim objWord As Object
Set objWord = GetObject(, "Word.Application")
objWord.Run "MacroName"
set objWord = nothing


-------------------------

Win10/x64, AMD Ryzen 7 3700X, 64GB RAM, Dragon 15.3, KB 2017, SpeechStart, Dragon Capture, Samson Meteor USB Desk Mic, Klim and JUKSTG earbuds with microphones, Office 365

 05/06/2020 06:29 PM
User is offline View Users Profile Print this message

Author Icon
dicdoc
Top-Tier Member

Posts: 207
Joined: 07/31/2014

KB says (10096) Active X automation, no object active. 

I ref Dragon active X, MS WOrd obj libr, MS Active X library 6.1

Have any idea what's missing ?



-------------------------

Memory: 16GB Microphone Brand and Model: Rec Mic II Operating System: win 10, latest update; Surface Book 2, Processor (CPU) Type & Speed: I7 8650 Soundcard Brand and Model: none Speech Software: Dragon Medical Practice Edition, french version: 4.0 Using KnowBrainer?: No

Statistics
31613 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 3936 on 09/08/2015 at 11:44 AM.
There are currently 441 guests browsing this forum, which makes a total of 442 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2020 FuseTalk™ Inc. All rights reserved.