Thanks for looking into it, I'm trying to do something like that can you please look at it Thanks !
Sub PracticeDriverScript
Dim sAtiveLogin
sAtiveLogin=Trim(ObjWorkSheet.Cells(2,3))
If sAtiveLogin <>"Y" Then
log.Error "Please Set Y to desired Active User"
Runner.Stop
Else
Call Sc_1
Call Sc_2
Call Sc_3
End If
End Sub
'+++++++++++++++++++++++++++++++++++++++++
Sub Sc_1
product = Trim(ObjWorkSheet.Cells(td_row,2))
quantity = Trim(ObjWorkSheet.Cells(td_row,3))
End Sub
'++++++++++++++++++++
Sub Sc_2
date1 = Trim(ObjWorkSheet.Cells(td_row,4))
customer_name = Trim(ObjWorkSheet.Cells(td_row,5))
End Sub
'++++++++++++++++++++
Sub Sc_3
street = Trim(ObjWorkSheet.Cells(td_row,6))
city = Trim(ObjWorkSheet.Cells(td_row,7))
End Sub
'++++++++++++++++++++++
Sub EventControl1_OnStartTest(Sender)
Set ObjExcelApp=Sys.OleObject("Excel.Application")
Set ObjWoorkBook=ObjExcelApp.Workbooks.Open("C:\Users\A6S\Desktop\Sampleworkbook.xlsx")
Set ObjWorkSheet=ObjWoorkBook.Sheets("Agent_Id_Pwd")
End Sub