Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get the data from website to excel
#1
Hi All,

I need to get the data in excel from one site and required data is in the below patteren and the below is my view source page of the website.
==== View Source======
Code:
wsluser02<BR> Number 0233462238 <BR>Directory Entry Type NQR<BR>strict ID WR<BR>Exchange group code AAX2<BR>SS installation LC 7221 0001 <BR>Number Ported 0208976103<BR>Job Number: WNM<BR>

==============================================
What i need is get the data of
Number Directory Entry type strict ID Exchange group code

0233462238 NQR AAX2 .....

Please help me out

Thanks,
Saisu
Reply
#2
Try this...
Code:
strSourceCode = Browser(..).Page(...).Object.documentElement.innerHTML

'this strSourceCode will have the entire source code of the page
Reply
#3
Hi,

From the source code i need to get the data in to excel like in the below

Number | name | code| id
01567891| Saisu|BBP5|37838

Thanks,
Saisu.
Reply
#4
And one more ...

CO_ID=Array(zx061289,ZM061311,MA061436)
For k=0 To 2
Set oIE=CreateObject("InternetExplorer.Application")
oIE.Visible=True
oIE.Navigate "http://webbridge.com:50350/ASD/controller?function=directAccess&action=display&=840000000&caseId="&CO_ID(k)&""
Next
My Array value is not populating on url .... Output am getting page not found because while navigating webbridge.com:50350/ASD/controller?function=directAccess&action=display&=840000000&caseId= .... Id is not populating from array.

Please help me out from above two ...

Thanks,
Saisu
Reply
#5
Hi Saisu,

You may try the following for extracting the data as required by you.For now i can only think of the following way.Assuming that the number size is fixed and code size is fixed,etc.
Code:
strText=Browser("Browser").Page("Page").Object.body.innerText msgbox strText 'number position posNum=instr(strText,"Number")+7 msgbox posNum strNumber=mid(strText,posNum,10) msgbox strNumber DataTable.Value("Number")=strNumber 'Directory entry type position posDET=instr(strText,"Directory Entry Type")+21 strDET=mid(strText,posDET,3) DataTable.Value("DET")=strDET msgbox strDET
Hope this helps you.

Regards,
Ravi
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,809 07-10-2017, 04:20 PM
Last Post: rajeevk7
  dtLocalSheet empty even though excel file contains data cantorre 2 3,128 05-10-2017, 12:47 PM
Last Post: vidhi
  Reading data from excel sheet serenediva 1 10,486 03-03-2017, 10:07 AM
Last Post: vinod123
  How to check whether data exists in excel.. venkatesh9032 1 3,626 03-06-2014, 04:37 PM
Last Post: supputuri
  Importing data from Excel into Data table of QTP Chitti 1 5,431 11-01-2013, 05:54 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)