Jay
Sun May 20 08:56:50 CDT 2007
On Sun, 20 May 2007 04:11:01 -0700, nta
<nta@discussions.microsoft.com> wrote:
>Suppose i have a gui application (currently written in python) which enables
>the user to create word tables, is there any way to insert this application
>as some sort of a macro (meaning: adding a button to word clicking on which
>will show the wizard)
>Thanks
Is your application compiled to an .exe or other executable file? If
so, look in the VBA help for the topic on the Shell command.
As an example, if you wanted a button in Word to run the Notepad
program, you could write a macro like this:
Sub RunNotepad()
Shell "C:\Windows\Notepad.exe", vbNormalFocus
End Sub
Then assign a toolbar button to that macro
(
http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm).
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.