![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Invoke MS-Word Macro Topic Summary: Created On: 15-Jan-2009 15:50 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
How can I command MS-Word to execute a Macro if its been added?
So far my numerous report scripts generate the output, create a temp file and set its contents (and close it), then invoke MS-Word to display the file. That is, I don't send OLE commands to Word. After the file is displayed the user is expected to format it appropriately, which means skip the first few preamble lines, select the bulk of the file that is supposed to become an MS-Word table, make the table and do lots of formatting. I've created MS-Word macros that do those chores, and finally created a master macro that figures out exactly what to do (e.g. column 4 width) based on the name of the displayed file, which always starts with the name of the script. One time per User per client machine, Users are expected to seek out the Word template (on the network), connect to it, so the Macros and the Toolbar Icon are always available to them. I'm pretty sure I need to be told how to do these things: [1] find the instance of MS-Word currently running on the client that is displaying a specifically named file. That is, find the MS-Word displaying 'MyDXL' and ignore the one displaying 'MyTimeCard'. [2] Command that instance of MS-Word to look for a particularly named Macro. If that macro exists then command that instance of MS-Word to run it. - Louie |
|
![]() |
|
![]() |
|
Louie, part of your solution can be found here:
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Invoke MS-Word Macro
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.