Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Code issue
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
Hi ,

I have excel sheet name as Book4.xls,in that 1 sheet having the Coulmn names as Script_Path,Repository_Path,Flag.

Script_path is nothing that iam giving the path of the my .vbs file and Repositopry _path is my repository path(.tsr file) and Flag value either "y " or "n".if flag="y".


Code:
datatable.AddSheet("newsheet")
datatable.ImportSheet "c:\tdf\spreadsheet.xls","sheet1","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

***//Pls help me,and correct the code
wen ever executing this script getting eroor as " expecting "if"

and as well as well how to add objpath to specific scriptth path ?
Reply


Messages In This Thread
Code issue - by 1981.madhu@gmail.com - 10-27-2009, 06:53 PM
RE: Code issue - by Saket - 10-28-2009, 09:56 AM
RE: Code issue - by 1981.madhu@gmail.com - 10-28-2009, 12:24 PM
RE: Code issue - by Saket - 10-28-2009, 12:29 PM
RE: Code issue - by 1981.madhu@gmail.com - 10-28-2009, 01:04 PM
RE: Code issue - by Saket - 10-28-2009, 01:20 PM
RE: Code issue - by 1981.madhu@gmail.com - 10-28-2009, 01:37 PM
RE: Code issue - by Saket - 10-28-2009, 02:07 PM
RE: Code issue - by 1981.madhu@gmail.com - 10-28-2009, 02:42 PM
RE: Code issue - by Saket - 10-28-2009, 03:54 PM
RE: Code issue - by 1981.madhu@gmail.com - 10-28-2009, 05:41 PM
RE: Code issue - by Saket - 10-28-2009, 05:48 PM
RE: Code issue - by 1981.madhu@gmail.com - 10-28-2009, 07:27 PM
RE: Code issue - by 1981.madhu@gmail.com - 10-29-2009, 01:54 PM
RE: Code issue - by Saket - 10-29-2009, 02:24 PM
RE: Code issue - by 1981.madhu@gmail.com - 10-29-2009, 03:05 PM
RE: Code issue - by Saket - 10-29-2009, 03:14 PM
RE: Code issue - by 1981.madhu@gmail.com - 10-30-2009, 07:14 PM
RE: Code issue - by Saket - 10-31-2009, 10:08 AM
RE: Code issue - by 1981.madhu@gmail.com - 11-02-2009, 03:04 PM
RE: Code issue - by 1981.madhu@gmail.com - 11-05-2009, 06:35 PM
RE: Code issue - by Saket - 11-05-2009, 06:37 PM
RE: Code issue - by 1981.madhu@gmail.com - 11-09-2009, 05:54 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)