Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-30-2015, 07:16 PM
macropod's Avatar
macropod macropod is offline Find whether string contains hyperlink and Process the same Windows 7 64bit Find whether string contains hyperlink and Process the same Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,521
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by PRA007 View Post
I want to extract link similarly from following website.

view-source:https://patentscope.wipo.int/search/en/detail.jsf?docId=WO2015177801&recNum=1&tab=PCTDocu ments

Text I want is in following formate



"https://mirror.patentscope.wipo.int/patentscope/docservicepdf_pct_mirror/id00000031470708/PAMPH/WO2015177801.pdf"

I can find it using
Code:
"https://mirror.patentscope.wipo.int/patentscope/docservicepdf_pct_mirror/*.pdf"
You would need to use a similar approach to the macro I gave you in post #8.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 12-01-2015, 02:29 AM
PRA007's Avatar
PRA007 PRA007 is offline Find whether string contains hyperlink and Process the same Windows 7 64bit Find whether string contains hyperlink and Process the same Office 2010 32bit
Competent Performer
Find whether string contains hyperlink and Process the same
 
Join Date: Dec 2014
Location: Ahmedabad, Gujrat, India
Posts: 145
PRA007 is on a distinguished road
Default

Don't know how but this works. If you can just give hint what this does, it would be grateful.

Code:
StrTxt = HttpReq.responseText
      i = InStr(StrTxt, "https://mirror.patentscope.wipo.int/patentscope/docservicepdf_pct_mirror/")
      If i > 0 Then
        StrTxt = Mid(StrTxt, i, Len(StrTxt) - i)
        i = InStr(StrTxt, ".pdf")
        If i > 0 Then
         StrTxt = Left(StrTxt, i + 3)
Reply With Quote
Reply

Tags
word vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Hyperlink to a single string PRA007 Word VBA 7 11-09-2015 04:29 PM
Find whether string contains hyperlink and Process the same find a set of characters in a string and return a 0 (zero) if not found MaineLady Excel 2 11-05-2015 03:23 PM
Find whether string contains hyperlink and Process the same Why is this Find string not working TechEd Word VBA 5 07-05-2014 08:12 PM
Find whether string contains hyperlink and Process the same Find and replace a string of text errtu Word 1 01-31-2013 02:09 PM
Find whether string contains hyperlink and Process the same Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft