Heya all...
Im trying to make a buttom in word (in the toolbar) that will open a VB form, anyone have any ideas how to do that ?
Best Regards
Garn
Printable View
Heya all...
Im trying to make a buttom in word (in the toolbar) that will open a VB form, anyone have any ideas how to do that ?
Best Regards
Garn
Do you mean start a VB app? That would be the Shell command.
ok... how do i do that ?
From VBA Help File:
Look it up, it's pretty straightforward. If the app is already open but not active, you can use the AppActivate command.VB Code:
' Specifying 1 as the second argument opens the application in ' normal size and gives it the focus. Dim RetVal RetVal = Shell("C:\WINDOWS\CALC.EXE", 1) ' Run Calculator