Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use the for loop while using Excel import to local datasheet?
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,
In my Excel sheet The first row i am having heading,
2and 3 rd row I am having values.
I am importing this excel sheet to local data sheet.
My script is like this,
Code:
Set xlWrkbk = xlApp.Workbooks.Open("C:\ListMan.xls")
'Set xlWrksht= xlWrkbk.Worksheets("MyLi-Loc")
For iRow = 2 to xlWrkSht.UsedRange.Rows.Count
.......
Next

Really I dont want to open this Excel again and again,thatwhy,I started using import method.Eventhough import method works for me,for selecting all the rows I need to set up for loop and its relative objects...
So again I am using the following command which opens the Excel sheet.
Code:
Set xlWrkbk = xlApp.Workbooks.Open("C:\ListMan.xls").


How to use the Xl sheet rows with out opening the excel sheet?

Any help?
Thanks
uma
Reply


Messages In This Thread
How to use the for loop while using Excel import to local datasheet? - by Uma - 09-30-2011, 04:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How import final calculated values by cell formula from Excel not the formula itself. qtped 1 4,852 01-17-2017, 04:05 PM
Last Post: sagar.raythatha
  Local System Monitor kbhargava505 0 2,522 10-16-2015, 12:52 PM
Last Post: kbhargava505
  Storing runtime value into datasheet priyaUFTlearner 4 3,425 04-10-2015, 10:08 PM
Last Post: priyaUFTlearner
  Error with QTP DataSheet Values. srach84 1 2,127 11-27-2014, 10:32 AM
Last Post: vinod123
  Datatable import error Prashanth 7 16,388 11-19-2014, 06:53 PM
Last Post: praveen.g3

Forum Jump:


Users browsing this thread: 1 Guest(s)