adding gui application to word

N

nta

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
 
J

Jay Freedman

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
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top