hyperlink

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, I have. a spreadsheet with 300+ records. One column has website addresses. How can I format those cells so that when I click on the web address, it will go to the websites? I know Excel explains it but I'm not understanding it. if someone could help me with this, I would really appreciate it. Thanks, Mindy
 
Mindy

Select the cells, hit F2 and ENTER as many times as needed to roll through the
range and change to hyperlinks.

Whole column at a time use this macro from David McRitchie.

Sub MakeHyperlinks()
Dim cell As Range
For Each cell In Intersect(Selection, _
Selection.SpecialCells(xlConstants, xlTextValues))
With Worksheets(1)
.Hyperlinks.Add Anchor:=cell, _
Address:=cell.Value, _
ScreenTip:=cell.Value, _
TextToDisplay:=cell.Value
End With
Next cell
End Sub

Gord Dibben Excel MVP
 
Hi Mindy,
Excel 97 and up.

If column A has the url for a website. i.e. http://www.microsoft.com
and Column B has the nice name i.e. Microsoft
then there is no need to repeat the same so use the word "link" or something.

=HYPERLINK(A1,"[link]")

I have a some more information on HYPERLINKS in
http://www.mvps.org/dmcritchie/excel/buildtoc.htm
http://www.mvps.org/dmcritchie/excel/sheets.htm


Mindy said:
Hello, I have. a spreadsheet with 300+ records. One column has website addresses. How can I format those cells so that when I
click on the web address, it will go to the websites? I know Excel explains it but I'm not understanding it. if someone could help
me with this, I would really appreciate it. Thanks, Mindy
 
Mindy

An easier way than the F2 and ENTER would be to add a helper column with

=HYPERLINK(A1) and drag/copy down the column. Assuming that the addresses are
in column A

Gord
 
Gord,
Will you be on in a few hours if I need help doing this?

Mindy

----- Gord Dibben wrote: ----

Mind

An easier way than the F2 and ENTER would be to add a helper column wit

=HYPERLINK(A1) and drag/copy down the column. Assuming that the addresses ar
in column

Gor
 
Mindy

Back on now.

Gord

Gord,
Will you be on in a few hours if I need help doing this?

Mindy

----- Gord Dibben wrote: -----

Mindy

An easier way than the F2 and ENTER would be to add a helper column with

=HYPERLINK(A1) and drag/copy down the column. Assuming that the addresses are
in column A

Gord
 
It worked! Thanks so much!

Mindy
----- Gord Dibben wrote: ----

Mind

Back on now

Gor

On Mon, 26 Jan 2004 04:36:06 -0800, "Mindy
 
Hi Gord,
I hope you don't mind me asking one more question. How can I get email addresses to do the same thing? If you wouldn't mind answering that, I would really appreciate it.

Thanks!
Mindy
----- Mindy wrote: -----

Gord,
Will you be on in a few hours if I need help doing this?

Mindy

----- Gord Dibben wrote: -----

Mindy

An easier way than the F2 and ENTER would be to add a helper column with

=HYPERLINK(A1) and drag/copy down the column. Assuming that the addresses are
in column A

Gord

Mindy
Select the cells, hit F2 and ENTER as many times as needed to roll through the
range and change to hyperlinks.
Whole column at a time use this macro from David McRitchie.
Sub MakeHyperlinks()
Dim cell As Range
For Each cell In Intersect(Selection, _
Selection.SpecialCells(xlConstants, xlTextValues))
With Worksheets(1)
.Hyperlinks.Add Anchor:=cell, _
Address:=cell.Value, _
ScreenTip:=cell.Value, _
TextToDisplay:=cell.Value
End With
Next cell
End Sub
 
David

Not sure what's scary.

The "it worked" part or the "back on now" part.

Please elucidate.

Thanks, Gord
 
Mindy

If you're thinking of clicking on an email address and sending mail you had
best check out Ron de Bruin's website and his SENDMAIL.XLA Add-in download.

Email addresses can be changed to look like hyperlinks using the methods
already posted, but you can't just click on one to send mail. You need more
than that.

Gord


Hi Gord,
I hope you don't mind me asking one more question. How can I get email addresses to do the same thing? If you wouldn't mind answering that, I would really appreciate it.

Thanks!
Mindy
----- Mindy wrote: -----

Gord,
Will you be on in a few hours if I need help doing this?

Mindy

----- Gord Dibben wrote: -----

Mindy

An easier way than the F2 and ENTER would be to add a helper column with

=HYPERLINK(A1) and drag/copy down the column. Assuming that the addresses are
in column A

Gord
 
The part about your solving problems ("it worked") by merely
being online ("back on now"), without having to wait for the
question or even provide an answer. Were you aware that
you answered another question or did it just happen.
 
If you used Gord's =hyperlink() technique, then you could use something like:

=HYPERLINK("mailto:"&A1)
(assumes that A1 contained something like (e-mail address removed))

And if you used Gord's macro, you could look for the @ sign:

Option Explicit
Sub MakeHyperlinks2()
Dim cell As Range
Dim myAddr As String

For Each cell In Intersect(Selection, _
Selection.SpecialCells(xlConstants, xlTextValues))

myAddr = ""
If InStr(1, cell.Value, "@") > 0 _
And LCase(Left(cell.Value, 7)) <> "mailto:" Then
myAddr = "mailto:" & cell.Value
ElseIf LCase(Left(cell.Value, 5)) <> "http:" Then
myAddr = "http://" & cell.Value
Else
myAddr = cell.Value
End If

If myAddr <> "" Then
With Worksheets(1)
.Hyperlinks.Add Anchor:=cell, _
Address:=cell.Value, _
ScreenTip:=myAddr, _
TextToDisplay:=cell.Value
End With
End With
Next cell

End Sub

But both of these hyperlinks will only open your default email client when you
click on them--they won't send the email.


Hi Gord,
I hope you don't mind me asking one more question. How can I get email addresses to do the same thing? If you wouldn't mind answering that, I would really appreciate it.

Thanks!
Mindy
----- Mindy wrote: -----

Gord,
Will you be on in a few hours if I need help doing this?

Mindy

----- Gord Dibben wrote: -----

Mindy

An easier way than the F2 and ENTER would be to add a helper column with

=HYPERLINK(A1) and drag/copy down the column. Assuming that the addresses are
in column A

Gord
 
Back
Top