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

On line (4), you have "Dir&ExcelName".
Does it mean that there are 2 variables where Dir has the location of the file and ExcelName has the file name?
If so try this:
Code:
Dir = "Complete path of your file\"
ExcelName = "ExcelName.xls"

DataTable.AddSheet("TestSheet")
DataTable.ImportSheet Dir & ExcelName, "sheetName", "TestSheet"

This is working for me.
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: 1 Guest(s)