Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3688

Excel not launching

$
0
0

HI,
I am unable to launch an Excel file using the following code:
var excel As New ExcelApplication
Var book As ExcelWorkbook
var f as folderitem
var lPth as string

lPth = “D:\Desktop\Test\Test1.xlsm”
f = GetFolderItem(lPth)
if f.exists then
Try
book = excel.Workbooks.open(lPth)
book.Activate
Catch eErr As oleException
MsgBox"Error opening file: " + eErr.Message
End Try
f = nil
end if

Can anyone let me know what is wrong?

Thanks
Geoff

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3688

Trending Articles