Running macro's from within VB Studio 2005 forms When I enter the following code to produce a VB Studio 2005 application
***************
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Call Macro1()
End Sub
Sub Macro1()
retval = Shell("C:\Program Files\Workspace Macro Pro 6.5\My Macros\Ed.wksp")
End Sub
End Class
****************
This is a simple one button test form in VB Studio 2005 to run a workspace macro, but it gives me an error "Name 'retval' is not declared " and I do not know how to declare it and clear this error in order for the vb form to run my macro Ed.wksp. |