#1   Report Post  
Michele
 
Posts: n/a
Default hyperlinks

is there a way to view all hyperlinks in a workbook so i can make sure there
are none linking out of my work book. i believe i have a couple trying to
draw info from somewhere else and i can't find it.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

Do you really mean Hyperlinks or do you mean links to other workbooks?

I've never seen a hyperlink try to get information and put it into a workbook.

If you meant links to other workbooks...

When I can't find links, I'll use Bill Manville's FindLink program:
http://www.oaltd.co.uk/MVP/Default.htm


Michele wrote:

is there a way to view all hyperlinks in a workbook so i can make sure there
are none linking out of my work book. i believe i have a couple trying to
draw info from somewhere else and i can't find it.


--

Dave Peterson
  #3   Report Post  
Michele
 
Posts: n/a
Default

file:///\\animal\shared\Accounting\DEBBIE '05-'06\ADESOGAN.xls - '61'!A1
this is an example of one of my links inside one of my workbook. it leads to
another page in the same workbook. i have about 26 workbook with about 31
worksheets in each. each workbook is independent of each other, there should
be not link leading out of the workbook itself. i think i may have some links
leading out and i can't locate them. there are so many links in each
workbook. i tried you suggestion but it found no links anywhere in the
workbook...lol. just trying to see if there is a way to look at each
link...maybe in a list or something so i can make sure there is no links
leading out of each workbook.


"Dave Peterson" wrote:

Do you really mean Hyperlinks or do you mean links to other workbooks?

I've never seen a hyperlink try to get information and put it into a workbook.

If you meant links to other workbooks...

When I can't find links, I'll use Bill Manville's FindLink program:
http://www.oaltd.co.uk/MVP/Default.htm


Michele wrote:

is there a way to view all hyperlinks in a workbook so i can make sure there
are none linking out of my work book. i believe i have a couple trying to
draw info from somewhere else and i can't find it.


--

Dave Peterson

  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

Something like this may help you find those hyperlinks:

Option Explicit
Sub findHyperlinks()
Dim wks As Worksheet
Dim rptWks As Worksheet
Dim oRow As Long
Dim myHyperlink As Hyperlink

Set rptWks = Worksheets.Add
rptWks.Range("a1").Resize(1, 4).Value _
= Array("Name", "Cell Address", "Hyperlink Address", _
"Hyperlink SubAddress")

oRow = 1
For Each wks In ActiveWorkbook.Worksheets
If wks.Name = rptWks.Name Then
'do nothing
Else
For Each myHyperlink In wks.Hyperlinks
oRow = oRow + 1
rptWks.Cells(oRow, "A").Value = "'" & wks.Name
On Error Resume Next
rptWks.Cells(oRow, "B").Value = myHyperlink.Parent.Address(0, 0)
rptWks.Cells(oRow, "C").Value = myHyperlink.Address
rptWks.Cells(oRow, "D").Value = myHyperlink.SubAddress
On Error GoTo 0
Next myHyperlink
End If
Next wks
End Sub

If I have a choice, I'll use the =hyperlink() worksheet function. It seems
better behaved.

David McRitchie posted this and it might help you:

=HYPERLINK("#"&CELL("address",C5),C5)
=HYPERLINK("#"&CELL("address",sheetone!C5),sheeton e!C5)
=HYPERLINK("#"&CELL("address",'sheet two'!C5),'sheet two'!C5)


Michele wrote:

file:///\\animal\shared\Accounting\DEBBIE '05-'06\ADESOGAN.xls - '61'!A1
this is an example of one of my links inside one of my workbook. it leads to
another page in the same workbook. i have about 26 workbook with about 31
worksheets in each. each workbook is independent of each other, there should
be not link leading out of the workbook itself. i think i may have some links
leading out and i can't locate them. there are so many links in each
workbook. i tried you suggestion but it found no links anywhere in the
workbook...lol. just trying to see if there is a way to look at each
link...maybe in a list or something so i can make sure there is no links
leading out of each workbook.

"Dave Peterson" wrote:

Do you really mean Hyperlinks or do you mean links to other workbooks?

I've never seen a hyperlink try to get information and put it into a workbook.

If you meant links to other workbooks...

When I can't find links, I'll use Bill Manville's FindLink program:
http://www.oaltd.co.uk/MVP/Default.htm


Michele wrote:

is there a way to view all hyperlinks in a workbook so i can make sure there
are none linking out of my work book. i believe i have a couple trying to
draw info from somewhere else and i can't find it.


--

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
Why do long hyperlinks get truncated on save in Excel? colerb Excel Worksheet Functions 1 June 13th 05 10:37 PM
Addressing hyperlinks in excel Owen Dodd Excel Discussion (Misc queries) 1 April 20th 05 08:35 PM
Problems with hyperlinks Lynde Excel Discussion (Misc queries) 5 January 14th 05 08:39 PM
Can 2 different hyperlinks be in the same Excel cell? rynes01 Excel Worksheet Functions 2 December 7th 04 05:15 PM
up-date hyperlinks in Excel PM Excel Worksheet Functions 0 November 11th 04 11:55 AM


All times are GMT +1. The time now is 12:41 PM.

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"