deepthi
10-26-2007, 05:44 AM
Hello....
I m using asp to access excel and copy a worksheet from one excel to another. When i m trying to use Set objExcel = CreateObject(Excel.Application) and create an instance and access the excel i m unable to... Do i require to register any dll?? I have excel 2003 in my system.
can someone help me with this. I m badly in need of this.
I m not able to access the excel even by the following simple operation
why is the following code not working for me?
Function ExcelOperation()
Dim objexcel
Set objExcel = createobject("Excel.application") <----------- This is where it's failing
objexcel.Visible = True
objexcel.Workbooks.add
objexcel.Cells(1, 1).Value = "Testing"
objexcel.ActiveWorkbook.SaveAs("D:\test.xls")
objexcel.Quit
End Function
Thanks in advance
--Deepu
I m using asp to access excel and copy a worksheet from one excel to another. When i m trying to use Set objExcel = CreateObject(Excel.Application) and create an instance and access the excel i m unable to... Do i require to register any dll?? I have excel 2003 in my system.
can someone help me with this. I m badly in need of this.
I m not able to access the excel even by the following simple operation
why is the following code not working for me?
Function ExcelOperation()
Dim objexcel
Set objExcel = createobject("Excel.application") <----------- This is where it's failing
objexcel.Visible = True
objexcel.Workbooks.add
objexcel.Cells(1, 1).Value = "Testing"
objexcel.ActiveWorkbook.SaveAs("D:\test.xls")
objexcel.Quit
End Function
Thanks in advance
--Deepu