Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can we import data from more than 1 excel sheets into the QTP at run time ?

Posted on 2008-10-13
6
Medium Priority
?
406 Views
Last Modified: 2008-10-20
Can we import data from more than 1 excel sheets into the QTP at run time ?
0
Comment
Question by:agcps
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 17

Expert Comment

by:ExcelGuide
ID: 22700846
I guess that would be possible, but I am not really sure what QTP is. I am for sure you can open up multiple excel files in vbs and then import them in a loop. If this would not work, then you could create one excel file from the multiple excel files and import that specific file.
0
 

Author Comment

by:agcps
ID: 22701323
Yeah Thanks for the suggestion. Can u please help me in one more thing so that i can implement the idea you have suggested

1) I have to select the data in excel in a used range
       Like : If i have used the excel sheet from A1 to D10 the i should be able to select only the area A1 to D10

I dont want to use ExcelSheet.Range("A1:D10").select

As the data keeps on changing and i can keep the values static for selecting the range in excel.

Can u help me in finding the way to select the used range from an excel.


0
 
LVL 17

Accepted Solution

by:
ExcelGuide earned 2000 total points
ID: 22701368
You should use something like:
Range("A1").CurrentRegion.Select

Good luck
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:agcps
ID: 22719834
Thanks a lot for that syntax... thats working.


0
 
LVL 17

Expert Comment

by:ExcelGuide
ID: 22719919
strange, first it is solved and then it is not? User doesnt even ask further....
0
 

Author Comment

by:agcps
ID: 22720889
Hi,

The main question did not get solved so could not accept your previous solution.

On your request i have accepted the previous solution for my second query and closing this question.

Thanks for the help buddy.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome back!  My apologies for taking so long to write part two of this series; it's been a long time coming!  As I promised in Part 1, this article will focus on how to locate those elusive AD properties that you are searching for.  Why is this us…
Hello again, all.  For those of you that have been following along, you'll know that this is my third article on this topic (though it is not Part III).  This article is sort of remedial, and probably the topic with which I should have started the s…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question