Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code issue
#21
Solved: 10 Years, 9 Months ago
Thanks to all.My code is resolved.Closing the Thread.

[/color]
Reply
#22
Solved: 10 Years, 9 Months ago
Always make a habbit to put your solutions here. that may help others.

Reply
#23
Solved: 10 Years, 9 Months ago
Really i forgot .Simple i forgaot to giving the sheet name on excel sheet .By default its take sheet1 ,but i given sheet2.


Code:
datatable.AddSheet("newsheet")
datatable.ImportSheet "c:\tdf\spreadsheet.xls","[color=#FF0000]sheet2[/color]","newsheet"
n=datatable.GetSheet("newsheet").getrowcount
For i = 1 to n
datatable.SetCurrentRow(i)
flag=datatable.value("Flag","newsheet")
If flag = "y" Then
scriptpath=datatable.Value("Script_Path","newsheet")
objpath=datatable.Value("Repository_Path","newsheet")


executefile scriptpath


End If
Next
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)