Solved

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

Posted on 2008-10-13
6
403 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 500 total points
ID: 22701368
You should use something like:
Range("A1").CurrentRegion.Select

Good luck
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Get HTML5 Certified

Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Recently I finished a vbscript that I thought I'd share.  It uses a text file with a list of server names to loop through and get various status reports, then writes them all into an Excel file.  Originally it was put together for our Altiris server…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

636 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