View Single Post
  #2 (permalink)  
Old 09-19-2007, 12:01 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 522
Default Re: Running macro's from within VB Studio 2005 forms

Hello,

Here is the syntax for declaring RetVal variable: Dim RetVal

Place this declaration at the beginning of procedure Macro1(). The text format of subroutine Macro1() would look something like this:

Sub Macro1()

Dim RetVal

RetVal = Shell("C:\Program Files\Workspace Macro Pro 6.5\ Workspace Macro Pro.exe Ed.wksp /u", 1)

End Sub

Hope that helps.
Reply With Quote