Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Identify link location

Hi,

I have a spreadsheet that has multiple links. Is there a
way to create a different sheet that will display the list
of links in the following format:

SheetName-Cell(Address)- Full Link(cell value)

thank you for your help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Identify link location

Are you talking about external links/references in cells?

If so, just loop through all your cells and see if they contain brackets
([ ]) which would indicate a reference to another workbook. You could then
put that information in another sheet

Dim sh as Worksheet
Dim rw as Long
Dim rng as Range
Dim cell as Range
rw = 1
for each sh in thisworkbook.worksheets
if sh.Name < "Report" then
set rng = Nothing
on Error Resume Next
set rng = sh.UsedRange.SpecialCells(xlFormulas)
On Error goto 0
if not rng is nothing then
for each cell in rng
if instr(cell.Formula,"[") then
worksheets("Report1").Cells(rw,1).Value = _
sh.Name & " - " & cell.Address & " - " _
& cell.Formula
rw = rw + 1
End If
Next
End if
End if
Next

--
Regards,
Tom Ogilvy


"igor" wrote in message
...
Hi,

I have a spreadsheet that has multiple links. Is there a
way to create a different sheet that will display the list
of links in the following format:

SheetName-Cell(Address)- Full Link(cell value)

thank you for your help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Identify link location

Tom,

You are the best.

Thank you
-----Original Message-----
Are you talking about external links/references in cells?

If so, just loop through all your cells and see if they

contain brackets
([ ]) which would indicate a reference to another

workbook. You could then
put that information in another sheet

Dim sh as Worksheet
Dim rw as Long
Dim rng as Range
Dim cell as Range
rw = 1
for each sh in thisworkbook.worksheets
if sh.Name < "Report" then
set rng = Nothing
on Error Resume Next
set rng = sh.UsedRange.SpecialCells(xlFormulas)
On Error goto 0
if not rng is nothing then
for each cell in rng
if instr(cell.Formula,"[") then
worksheets("Report1").Cells(rw,1).Value

= _
sh.Name & " - " & cell.Address & " - "

_
& cell.Formula
rw = rw + 1
End If
Next
End if
End if
Next

--
Regards,
Tom Ogilvy


"igor" wrote in message
...
Hi,

I have a spreadsheet that has multiple links. Is there a
way to create a different sheet that will display the

list
of links in the following format:

SheetName-Cell(Address)- Full Link(cell value)

thank you for your help



.

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
location of a link in server Lowan Chan Excel Discussion (Misc queries) 2 November 11th 09 04:24 AM
link not updating after changing source location Fred Excel Discussion (Misc queries) 0 October 11th 07 06:05 PM
Please help: identify where an automatic link to other spreadsheet is? Lee Harris Excel Worksheet Functions 5 August 19th 06 01:06 AM
link to identify lastest entry in the row tikchye_oldLearner57 Excel Discussion (Misc queries) 1 May 9th 06 08:17 PM
How to identify source or location of MAX_VALUE in range Phil Excel Worksheet Functions 5 March 7th 05 11:21 PM


All times are GMT +1. The time now is 06:18 AM.

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

About Us

"It's about Microsoft Excel"