Results 1 to 4 of 4

Thread: Getting word to open VB form

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2004
    Posts
    37

    Getting word to open VB form

    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

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    Do you mean start a VB app? That would be the Shell command.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2004
    Posts
    37
    ok... how do i do that ?

  4. #4
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    From VBA Help File:
    VB Code:
    1. ' Specifying 1 as the second argument opens the application in
    2. ' normal size and gives it the focus.
    3. Dim RetVal
    4. RetVal = Shell("C:\WINDOWS\CALC.EXE", 1)    ' Run Calculator
    Look it up, it's pretty straightforward. If the app is already open but not active, you can use the AppActivate command.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width