Jezebel
Fri Mar 31 05:25:52 CST 2006
You don't actually need VBA ---
Method 1: use wildcard searching: http[! ]{1,} and [a-zA-Z]{1,}.asp
respectively. You could use this technique to apply a special format, then
delete everything that doesn't have that format. (You use VBA for this also,
if you're extracting the items and doing something else with them.)
Method 2: convert all whitespace to paragraph marks, to turn the document
into a flat list of words. Copy and paste into Excel. Do a unique sort. All
your http lines will come together. Use the Find() function in the adjacent
column to find cells contain ".asp".
"Maxi" <maheshchindarkar@gmail.com> wrote in message
news:1143802946.520483.321760@z34g2000cwc.googlegroups.com...
>I have huge text in a word file I want to extract all the links that
> starts from
http:// and all filenames ending with .asp file extension
> and keep it at the end of the document. Is this possible in word vba?
>