M
marilyn
Dim oExcel As Excel.Application
Dim oBook As Excel.Workbook
Dim oSheet As Excel.Worksheet
strFnameTmp1 = "c:\Data\Burn.xls"
If FileExists(strFnameTmpl) Then
Set oBook = oExcel.Workbooks.Open(strFnameTmpl)
Else
Set oBook = oExcel.Workbooks.Add(strFnameTmpl)
End If
On the Set obook = OExcel.workbooks.add(strFnameTmpl), the
following runtime error occurred: "Burn.xls could not be
found". I thought the ADD command allows the creation of
a new workbook. What am I doing wrong?
Thank you
Dim oBook As Excel.Workbook
Dim oSheet As Excel.Worksheet
strFnameTmp1 = "c:\Data\Burn.xls"
If FileExists(strFnameTmpl) Then
Set oBook = oExcel.Workbooks.Open(strFnameTmpl)
Else
Set oBook = oExcel.Workbooks.Add(strFnameTmpl)
End If
On the Set obook = OExcel.workbooks.add(strFnameTmpl), the
following runtime error occurred: "Burn.xls could not be
found". I thought the ADD command allows the creation of
a new workbook. What am I doing wrong?
Thank you