I am trying to fetch data from excel sheet into my SAP system with the help of following part of the code :
Dim xcl As Object
Dim wbk As Workbook
Dim sht As Worksheet
Application.DisplayAlerts = False
Set xcl = CreateObject("Excel.Application")
Set wbk = Workbooks.Open("C:\....")
Set sht= wbk.Sheets("excel1")
Dim j As Integer
For j = 0 To 2
**session.findById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/ctxtRSCSEL_255-SLOW_I[1," & Int(j) & "]").Text = sht.Range("B1:B3").Value**
Next j
End Sub
With lots of research on stackoverflow(@scriptman is my hero), i am finally able to fetch data in SAP system using " & Int(j) & ". But it only works if I am using sht.Range("B1").Value
If i use, sht.Range("B1:B3").Value, I get error in the above bold line as "Runtime error 613" The method got an invalid arguement"
Please help. I am stuck at this since a month.