J
Janis
I have a macro that opens a form and workbook however I want to test to see
if the form is already opened by the user. This looks like it should work
but it doesn't like the line:
set wkb = GetObject.Openxxxxx
Public Sub openFile()
Const fName As String = "Book1.xls"
Const fPath As String = "Mac OS X:SSP Process:"
Dim wkb As Workbook
Set wkb = GetObject.Open(Filename:=fPath & fName)
If Err.Number <> 0 Then _
Set wkb = Workbooks.Open(Filename:=fPath & fName)
Err.Clear
End Sub
Thanks,
if the form is already opened by the user. This looks like it should work
but it doesn't like the line:
set wkb = GetObject.Openxxxxx
Public Sub openFile()
Const fName As String = "Book1.xls"
Const fPath As String = "Mac OS X:SSP Process:"
Dim wkb As Workbook
Set wkb = GetObject.Open(Filename:=fPath & fName)
If Err.Number <> 0 Then _
Set wkb = Workbooks.Open(Filename:=fPath & fName)
Err.Clear
End Sub
Thanks,