Extract web address

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi--

I have tried to extract this data dfrom ***.eml files and fell flat on my face as outlook extraction into Excel... However

I have had the nasty task of this:

I copied and paste then text to cloumns, via wizard and then filtered to http:

Bingo worked for me ||||| :)

HTH Some thoughts

Rdgs
=========
Jack
 
Upvote 0
Try this user-defined function. You can paste it into a module in your workbook. If you don't know how to do this, let me know.
After you have pasted it into a module in your workbook, just call it like this:

=ShowAddress(A1)

Where A1 is the cell with the MR. EXCEL hyperlink in it.

<pre><font color='#000000'>
<font color='#000080'>Option</font> <font color='#000080'>Explicit</font>

<hr align=left width=500><font color='#000080'>Public</font> <font color='#000080'>Function</font> ShowAddress(rng <font color='#000080'>As</font> Range) <font color='#000080'>As</font> <font color='#000080'>String</font>
<font color='#000080'>If</font> rng.Cells.Count > 1 <font color='#000080'>Then</font>
ShowAddress = CVErr(xlErrValue)
<font color='#000080'>Else</font>
ShowAddress = rng.Hyperlinks.Item(1).Address
<font color='#000080'>End</font> <font color='#000080'>If</font>
<font color='#000080'>End</font> <font color='#000080'>Function</font>

</font></pre>

Hope this helps,

Russell
 
Upvote 0
Try this user-defined function. You can paste it into a module in your workbook. If you don't know how to do this, let me know.
After you have pasted it into a module in your workbook, just call it like this:

=ShowAddress(A1)

Where A1 is the cell with the MR. EXCEL hyperlink in it.

<pre><font color='#000000'>
<font color='#000080'>Option</font> <font color='#000080'>Explicit</font>

<hr align=left width=500><font color='#000080'>Public</font> <font color='#000080'>Function</font> ShowAddress(rng <font color='#000080'>As</font> Range) <font color='#000080'>As</font> <font color='#000080'>String</font>
<font color='#000080'>If</font> rng.Cells.Count > 1 <font color='#000080'>Then</font>
ShowAddress = CVErr(xlErrValue)
<font color='#000080'>Else</font>
ShowAddress = rng.Hyperlinks.Item(1).Address
<font color='#000080'>End</font> <font color='#000080'>If</font>
<font color='#000080'>End</font> <font color='#000080'>Function</font>

</font></pre>

Hope this helps,

Russell


This was great. Thanks***BFL :(
 
Upvote 0
I am running Excel 2007, running a macro-enabled workbook. Whether I paste the function direct from the site, or via a paste-to-notepad-then-copy-to-VB, or when typed by hand, I get the following result when I call the function: "#NAME?" The function indicated it takes no arguments, despite the function appearing to be correctly cast (no added spaces, using different name in case of conflict, etc).

The MSKB articles come close but do not hit the problem. I am at a bit of a loss for my next step, short of running to my O'Reilly library and taking a crash course on VBS, which would probably be good in any event.

Thanks!
sh
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,356
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top