How to run command in word
Is it possible to click on a text (e.g. one word) in office word, in such a way that it suns some lines of command prompt script.
To be more specific, I have two lines of code which I need to run in command prompt interface (CMD.EXE in windows).
Instead of doing the following steps, I want to click on a text in microsoft office (e.g. MYFUNCTION) and it runs the following steps:
1- type CMD in command prompt (or open command prompt window)
2- run two codes
3- close command prompt window
Thank you for your help.
|