Sub find_links() Dim extlinks Dim j As Long, k As Long Dim wkb As Workbook Dim rng As Range, cl As Range Dim links1 As String Dim links2 As String Set wkb = Workbooks.Add wkb.Sheets(1).Range("a1").Value = "Cell Address" wkb.Sheets(1).Range("b1").Value = "Formula" wkb.Sheets(1).Range("c1").Value = "External Link" Set rng = ThisWorkbook.Sheets(1).UsedRange.SpecialCells(xlCellTypeFormulas) k = 2
extlinks = ThisWorkbook.LinkSources(xlExcelLinks) For j = LBound(extlinks) To UBound(extlinks) links1 = Left(extlinks(j), InStrRev(extlinks(j), "\")) & "[" For Each cl In rng If InStr(" " & cl.Formula, links1) > 0 Then wkb.Sheets(1).Range("a" & k).Value = cl.Address wkb.Sheets(1).Range("b" & k).Value = "'" & cl.Formula wkb.Sheets(1).Range("c" & k).Value = extlinks(j) k = k + 1 End If Next Next End Sub try this for sheet1 only use the loop to go through all worksheets in the workbook On Tue, Apr 1, 2014 at 1:23 PM, Ashish Bhalara <ashishbhalar...@gmail.com>wrote: > Dear experts, > > My workbook containing large no. of sheets & formulas, but I want to show > those formulas which containing links to other data source of file. Kindly > know me how to check it. > > -- > Regards. > Ashish Bhalara > 9624111822 > P*Please do not print this email unless it is absolutely necessary. > Spread environmental üawareness.♣♣♣* > > -- > Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s > =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ > https://www.facebook.com/discussexcel > > FORUM RULES > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > 2) Don't post a question in the thread of another member. > 3) Don't post questions regarding breaking or bypassing any security > measure. > 4) Acknowledge the responses you receive, good or bad. > 5) Jobs posting is not allowed. > 6) Sharing copyrighted material and their links is not allowed. > > NOTE : Don't ever post confidential data in a workbook. Forum owners and > members are not responsible for any loss. > --- > You received this message because you are subscribed to the Google Groups > "MS EXCEL AND VBA MACROS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to excel-macros+unsubscr...@googlegroups.com. > To post to this group, send email to excel-macros@googlegroups.com. > Visit this group at http://groups.google.com/group/excel-macros. > For more options, visit https://groups.google.com/d/optout. > -- *Regards* *Ashish Koul* *Visit* http://www.excelvbamacros.in Like Us on Facebook<http://www.facebook.com/pages/Excel-VBA-Codes-Macros/151803898222297> Join Us on Facebook <http://www.facebook.com/groups/163491717053198/> P Before printing, think about the environment. -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at http://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.