Solved

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

Posted on 2008-10-13
6
387 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
  • 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
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I met Paul Devereux (@pdevereux) today when I responded to his tweet asking “Anybody know how to automate adding files from disk to a folder in #outlook  ?”.  I replied back and told Paul that using automation, in this case scripting, to add files t…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 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