Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
importing excel data
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi All,

I tried importing excel data through this process but I received the following error during run-time:
Code:
"The Data Table.AddSheet operation failed. Invalid argument".
sheetcount = DataTable.GetSheetCount
If sheetcount < 2000 Then
Line (3) datatable.AddSheet(SheetName)
            datatable.ImportSheet Dir&ExcelName,SheetName,SheetName
            DataTable.SetCurrentRow(0)            
End If

The error shows up in line (3) datatable.AddSheet, stop and re-running the script from beginning solve this problem, is there any why to avoid this error.
Reply


Messages In This Thread
importing excel data - by galis - 11-29-2010, 07:45 PM
RE: importing excel data - by manishbhalshankar - 11-30-2010, 10:44 AM
RE: importing excel data - by galis - 11-30-2010, 07:05 PM
RE: importing excel data - by manishbhalshankar - 12-01-2010, 05:24 PM
RE: importing excel data - by galis - 12-05-2010, 05:39 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)