Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 249
Default converting hyperlink to actual web address

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default converting hyperlink to actual web address

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 249
Default converting hyperlink to actual web address

Yes please Shane - that would work for me.

Thanks,

Roger

"ShaneDevenshire" wrote:

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default converting hyperlink to actual web address

Try
'Assuming you have your hyperlinks in Col A
'This will extract links and paste in Col B
Sub HyperLinksShow()
Dim i
Dim LastRow
LastRow = Range("A65536").End(xlUp).Row
For i = 1 To LastRow
On Error Resume NExt
Cells(i, 2).Value = Cells(i, 1).Hyperlinks(1).Name
Next i
End Sub
--
If you find this post helpful pl. choose "Yes"...


"Roger on Excel" wrote:

Yes please Shane - that would work for me.

Thanks,

Roger

"ShaneDevenshire" wrote:

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default converting hyperlink to actual web address

Hi,

Here is a function you can enter in the spreadsheet

Function myHyperlink(cell As Range) As String
On Error Resume Next
If cell.Hyperlinks(1).Address < "" Then
myHyperlink = cell.Hyperlinks(1).Address
ElseIf Err < 0 Then
myHyperlink = ""
Else
myHyperlink = cell.Hyperlinks(1).Name
End If
End Function

If your hyperlink is in cell A1 then in B1 enter =myHyperlink(A1)

This function returns a hyperlink address if there is one, otherwise if the
cell has a hyperlink that is not a typical hyperlink address it returns the
name. Finally if there is no hyperlink in the cell it return nothing.

If you want a macro to enter the hyperlink in the cell without a formula, then

Sub HLinks()
Dim cell As Range
On Error Resume Next
For Each cell In Selection
If cell.Hyperlinks(1).Address < "" Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Address
ElseIf Err = 0 Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Name
End If
Next cell
End Sub

To execute this macro you select all the cells with/without hyperlinks and
run it, the macro will populate the cell to the right similar to the function
above but it will not be a formula.
--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

Yes please Shane - that would work for me.

Thanks,

Roger

"ShaneDevenshire" wrote:

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 249
Default converting hyperlink to actual web address

Thanks Shane - very much appreciated - worked great

All the best, Roger

"ShaneDevenshire" wrote:

Hi,

Here is a function you can enter in the spreadsheet

Function myHyperlink(cell As Range) As String
On Error Resume Next
If cell.Hyperlinks(1).Address < "" Then
myHyperlink = cell.Hyperlinks(1).Address
ElseIf Err < 0 Then
myHyperlink = ""
Else
myHyperlink = cell.Hyperlinks(1).Name
End If
End Function

If your hyperlink is in cell A1 then in B1 enter =myHyperlink(A1)

This function returns a hyperlink address if there is one, otherwise if the
cell has a hyperlink that is not a typical hyperlink address it returns the
name. Finally if there is no hyperlink in the cell it return nothing.

If you want a macro to enter the hyperlink in the cell without a formula, then

Sub HLinks()
Dim cell As Range
On Error Resume Next
For Each cell In Selection
If cell.Hyperlinks(1).Address < "" Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Address
ElseIf Err = 0 Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Name
End If
Next cell
End Sub

To execute this macro you select all the cells with/without hyperlinks and
run it, the macro will populate the cell to the right similar to the function
above but it will not be a formula.
--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

Yes please Shane - that would work for me.

Thanks,

Roger

"ShaneDevenshire" wrote:

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default converting hyperlink to actual web address

Can you help me?
I would like to show the actual email address that is in a hyperlink formula
with out having to click on each hyperlink and cut and paste the email
address from the To: line on an email.
Can you email me I really need help
--
KATHERINE


"ShaneDevenshire" wrote:

Hi,

Here is a function you can enter in the spreadsheet

Function myHyperlink(cell As Range) As String
On Error Resume Next
If cell.Hyperlinks(1).Address < "" Then
myHyperlink = cell.Hyperlinks(1).Address
ElseIf Err < 0 Then
myHyperlink = ""
Else
myHyperlink = cell.Hyperlinks(1).Name
End If
End Function

If your hyperlink is in cell A1 then in B1 enter =myHyperlink(A1)

This function returns a hyperlink address if there is one, otherwise if the
cell has a hyperlink that is not a typical hyperlink address it returns the
name. Finally if there is no hyperlink in the cell it return nothing.

If you want a macro to enter the hyperlink in the cell without a formula, then

Sub HLinks()
Dim cell As Range
On Error Resume Next
For Each cell In Selection
If cell.Hyperlinks(1).Address < "" Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Address
ElseIf Err = 0 Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Name
End If
Next cell
End Sub

To execute this macro you select all the cells with/without hyperlinks and
run it, the macro will populate the cell to the right similar to the function
above but it will not be a formula.
--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

Yes please Shane - that would work for me.

Thanks,

Roger

"ShaneDevenshire" wrote:

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default converting hyperlink to actual web address

If you use that =myHyperlink() function, you'll see something like:



So you could strip that mailto: stuff off by:

=mid(myhyperlink(a1),8,255)
(where A1 contains the hyperlink to the email address.)



EXCEL HELP wrote:

Can you help me?
I would like to show the actual email address that is in a hyperlink formula
with out having to click on each hyperlink and cut and paste the email
address from the To: line on an email.
Can you email me I really need help
--
KATHERINE

"ShaneDevenshire" wrote:

Hi,

Here is a function you can enter in the spreadsheet

Function myHyperlink(cell As Range) As String
On Error Resume Next
If cell.Hyperlinks(1).Address < "" Then
myHyperlink = cell.Hyperlinks(1).Address
ElseIf Err < 0 Then
myHyperlink = ""
Else
myHyperlink = cell.Hyperlinks(1).Name
End If
End Function

If your hyperlink is in cell A1 then in B1 enter =myHyperlink(A1)

This function returns a hyperlink address if there is one, otherwise if the
cell has a hyperlink that is not a typical hyperlink address it returns the
name. Finally if there is no hyperlink in the cell it return nothing.

If you want a macro to enter the hyperlink in the cell without a formula, then

Sub HLinks()
Dim cell As Range
On Error Resume Next
For Each cell In Selection
If cell.Hyperlinks(1).Address < "" Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Address
ElseIf Err = 0 Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Name
End If
Next cell
End Sub

To execute this macro you select all the cells with/without hyperlinks and
run it, the macro will populate the cell to the right similar to the function
above but it will not be a formula.
--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

Yes please Shane - that would work for me.

Thanks,

Roger

"ShaneDevenshire" wrote:

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default converting hyperlink to actual web address

Dave, when i put in the formulas:
=myhyperlink(a1)
or
=mid(myhyperlink(a1),8,255)
(where A1 contains the hyperlink to the email address.)


in both instances i get #name? in the cell.

Can I email you a copy of my excel sheet so you can see the data I am
working with ?

--
KATHERINE


"Dave Peterson" wrote:

If you use that =myHyperlink() function, you'll see something like:



So you could strip that mailto: stuff off by:

=mid(myhyperlink(a1),8,255)
(where A1 contains the hyperlink to the email address.)



EXCEL HELP wrote:

Can you help me?
I would like to show the actual email address that is in a hyperlink formula
with out having to click on each hyperlink and cut and paste the email
address from the To: line on an email.
Can you email me I really need help
--
KATHERINE

"ShaneDevenshire" wrote:

Hi,

Here is a function you can enter in the spreadsheet

Function myHyperlink(cell As Range) As String
On Error Resume Next
If cell.Hyperlinks(1).Address < "" Then
myHyperlink = cell.Hyperlinks(1).Address
ElseIf Err < 0 Then
myHyperlink = ""
Else
myHyperlink = cell.Hyperlinks(1).Name
End If
End Function

If your hyperlink is in cell A1 then in B1 enter =myHyperlink(A1)

This function returns a hyperlink address if there is one, otherwise if the
cell has a hyperlink that is not a typical hyperlink address it returns the
name. Finally if there is no hyperlink in the cell it return nothing.

If you want a macro to enter the hyperlink in the cell without a formula, then

Sub HLinks()
Dim cell As Range
On Error Resume Next
For Each cell In Selection
If cell.Hyperlinks(1).Address < "" Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Address
ElseIf Err = 0 Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Name
End If
Next cell
End Sub

To execute this macro you select all the cells with/without hyperlinks and
run it, the macro will populate the cell to the right similar to the function
above but it will not be a formula.
--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

Yes please Shane - that would work for me.

Thanks,

Roger

"ShaneDevenshire" wrote:

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger


--

Dave Peterson

  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default converting hyperlink to actual web address

No thanks.

Did you install that user defined macro that Shane wrote for you.

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

========
Short course:

Open your workbook.
Hit alt-f11 to get to the VBE (where macros/UDF's live)
hit ctrl-R to view the project explorer
Find your workbook.
should look like: VBAProject (yourfilename.xls)

right click on the project name
Insert, then Module
You should see the code window pop up on the right hand side

Paste the code in there.

Now go back to excel.
Into a test cell and type:
=myhyperlink(a1)
Where A1 contains a hyperlink.

Then if that works, try:
=mid(myhyperlink(a1),8,255)


EXCEL HELP wrote:

Dave, when i put in the formulas:
=myhyperlink(a1)
or
=mid(myhyperlink(a1),8,255)
(where A1 contains the hyperlink to the email address.)


in both instances i get #name? in the cell.

Can I email you a copy of my excel sheet so you can see the data I am
working with ?

--
KATHERINE

"Dave Peterson" wrote:

If you use that =myHyperlink() function, you'll see something like:



So you could strip that mailto: stuff off by:

=mid(myhyperlink(a1),8,255)
(where A1 contains the hyperlink to the email address.)



EXCEL HELP wrote:

Can you help me?
I would like to show the actual email address that is in a hyperlink formula
with out having to click on each hyperlink and cut and paste the email
address from the To: line on an email.
Can you email me I really need help
--
KATHERINE

"ShaneDevenshire" wrote:

Hi,

Here is a function you can enter in the spreadsheet

Function myHyperlink(cell As Range) As String
On Error Resume Next
If cell.Hyperlinks(1).Address < "" Then
myHyperlink = cell.Hyperlinks(1).Address
ElseIf Err < 0 Then
myHyperlink = ""
Else
myHyperlink = cell.Hyperlinks(1).Name
End If
End Function

If your hyperlink is in cell A1 then in B1 enter =myHyperlink(A1)

This function returns a hyperlink address if there is one, otherwise if the
cell has a hyperlink that is not a typical hyperlink address it returns the
name. Finally if there is no hyperlink in the cell it return nothing.

If you want a macro to enter the hyperlink in the cell without a formula, then

Sub HLinks()
Dim cell As Range
On Error Resume Next
For Each cell In Selection
If cell.Hyperlinks(1).Address < "" Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Address
ElseIf Err = 0 Then
cell.Offset(0, 1).Value = cell.Hyperlinks(1).Name
End If
Next cell
End Sub

To execute this macro you select all the cells with/without hyperlinks and
run it, the macro will populate the cell to the right similar to the function
above but it will not be a formula.
--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

Yes please Shane - that would work for me.

Thanks,

Roger

"ShaneDevenshire" wrote:

Hi,

I believe you would need to create a VBA routine to do this, do you want that?

--
Thanks,
Shane Devenshire


"Roger on Excel" wrote:

I have hyperlinksin a column in my spreadsheet.

I would like the cells adjacent to show the actual web address.

How do i do this?

Thanks in advance,

Roger


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Formula Results to Actual Data Values RSJ145 Excel Discussion (Misc queries) 5 May 16th 07 01:56 AM
Moving rows with Hyperlink doesn't move hyperlink address Samad Excel Discussion (Misc queries) 15 June 22nd 06 12:03 PM
Converting an object in Excel into an actual cell astronautambo Excel Discussion (Misc queries) 0 September 7th 05 06:51 PM
Hyperlink-Programable replacement of Text with Its Actual Address Kathy Excel Worksheet Functions 2 June 23rd 05 05:39 PM
Help me Please!! Need hyperlinks to show actual email address! dustin New Users to Excel 1 January 13th 05 08:59 PM


All times are GMT +1. The time now is 04:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"