View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Janis Janis is offline
external usenet poster
 
Posts: 360
Default type mismatch, can't open a workbook?

Thank-you

"Janis" wrote:

i can't get this workbook to open. The folder, and filename is constant.
Thanks,


Public Sub openFile()
Const fName As String = "Book1.xls"
Const fPath As String = "MacOS X:SSP Folder:"
Dim wkb As Workbook
Set wkb = fPath & fName
wkb.Open



End Sub