+ Reply to Thread
Results 1 to 6 of 6

Extracting Specific Word From Extracted Innertext

  1. #1
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Extracting Specific Word From Extracted Innertext

    Greetings!

    I'm thinking how to extract specific word from extracted innertext and then put it in a cell.

    the code I used to extract the innertext is,

    Please Login or Register  to view this content.
    Then the extracted innertext in ActiveCell.Offset(0, -1) is "1010058251/ esther mayormita benigno [0a003eda8287] Luid: 22"

    I wanted a code that will extract the specific word "[0a003eda8287] Luid: 22", I don't know how to use Find in vba format, can anyone help me on this.
    "Consummatum Est"

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Extracting Specific Word From Extracted Innertext

    maybe something like this
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Re: Extracting Specific Word From Extracted Innertext

    Nyahahahay, you're great nilem!

    This is the code I used and is now working, thanks much nilem!

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Re: Extracting Specific Word From Extracted Innertext

    how about if the format of the string is like this?

    Please Login or Register  to view this content.
    then the value is like this.


    "Current Results Stats for LUID: 18 Test Duration: 2 Pkt Length: 1522

    Downlink Rate: 4739072 bps (4.74 Mbps)
    Uplink Rate: 1285120 bps (1.29 Mbps)
    Aggregate Rate: 6024192 bps (6.02 Mbps, 493 pps)
    Pkt Xmt (Act/Exp): 778/0 (389 pps)
    Pkt Rcv (Act/Exp): 209/0 (104 pps)

    Downlink Efficiency: 100 Percent
    Downlink Index (Act/Max): 100/100
    Frag Count (Act/Exp): 18512/18512

    Uplink Efficiency: 100 Percent
    Uplink Index (Act/Max): 100/100
    Frag Count (Act/Exp): 5020/5020


    VC 34 Rate 1X/1X "


    I wanted to extract the value "100 Percent" after the word "Downlink Efficiency" and "Uplink Efficiency", I used the code in this format

    Please Login or Register  to view this content.
    I added 11 in last part since "100 Percent" is 11 of length and the result is this "Downlink Ef", how should I revise the code so that instead of "Downlink Ef", I could extract the word "100 Percent"?

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Extracting Specific Word From Extracted Innertext

    I do not really understand what was going on, but try
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-21-2012
    Location
    Metro Manila, Phiippines
    MS-Off Ver
    Office 2007
    Posts
    77

    Re: Extracting Specific Word From Extracted Innertext

    well then it works nilem! thank you very much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1