ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Simple C&P Q (internet to Excel) (https://www.excelbanter.com/excel-discussion-misc-queries/201192-simple-c-p-q-internet-excel.html)

MaryS

Simple C&P Q (internet to Excel)
 
There is a list of school on the internet, each a hyperlink to the school
home pg. I want to copy that into column A (Excel 2003) so I can add other
data as I research each school. But when I C&P the list of school names
(hyperlinks), the names show up in the worksheet, but the hyperlinks are
lost. It works OK in Word - but not in Excel 2003.
What am I doing wrong?
Thanks,
Mary

Gord Dibben

Simple C&P Q (internet to Excel)
 
You're doing nothing wrong

Excel won't do what you want without some help.

Select the range and run this macro.

Sub MakeHyperlinks()
'David McRitchie
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 MS Excel MVP

On Wed, 3 Sep 2008 13:23:02 -0700, MaryS
wrote:

There is a list of school on the internet, each a hyperlink to the school
home pg. I want to copy that into column A (Excel 2003) so I can add other
data as I research each school. But when I C&P the list of school names
(hyperlinks), the names show up in the worksheet, but the hyperlinks are
lost. It works OK in Word - but not in Excel 2003.
What am I doing wrong?
Thanks,
Mary




All times are GMT +1. The time now is 06:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com