For
Each
oLink
In
oRng.hyperlinks
If
Right(LCase(oLink.Address), 3) =
"pdf"
And
_
Left(LCase(oLink.Address), 4) =
"http"
Then
vAddr = Split(oLink.Address,
"/"
)
strFName = vAddr(UBound(vAddr))
strURL = oLink.Address
strLocal = strPath & strFName
If
URLDownloadToFile(0, strURL, strLocal, 0, 0) = 0
Then
End
If
End
If
Next
oLink