+ Reply to Thread
Results 1 to 5 of 5

Log of External Links in the workbook

  1. #1
    Registered User
    Join Date
    03-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Log of External Links in the workbook

    Hi,

    Hope all is well. I have been trying to edit a macro to list out all the external links within the workbook in the tab name "ExternalLinks". The macro lists out Sheet Reference and the cell where the external link is located. But I'm keep on stumbling upon a Run-time error '1004': Application-defined or object-defined error on line If InStr(c.Formula, UserChoice) for the following code.

    The macro works if I change c.formula to c.value but that is not the result I'm looking for. Also, it will be an addition if the macro can list out the workbook & the tab named in external link in a separate columns.

    Below is the code:
    Please Login or Register  to view this content.
    Any help is much appreciated.
    Last edited by DUKE888; 04-06-2011 at 10:56 AM.

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Log of External Links in the workbook

    Hi Duke888,

    Snb's post #6 in the following thread may help you: http://www.thecodecage.com/forumz/me...der-drive.html

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    Registered User
    Join Date
    03-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Log of External Links in the workbook

    Rob,

    Thank you for the prompt response. I have tried the snb macro but doesn't seem to work. I could be wrong in editing the code though.

    Regards,
    Duke

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Log of External Links in the workbook

    Please Login or Register  to view this content.
    Last edited by snb; 04-06-2011 at 11:13 AM.



  5. #5
    Registered User
    Join Date
    03-20-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Log of External Links in the workbook

    Snb and Rob,

    THANK YOU BOTH! I am able to get the desired result. Initially it did gave an error "Object Variable not set" but it was resolved after adding a line to your code "Dim sh as worksheets" and also corrected the "externalLinks" to "ExternalLinks". We only learn through mistakes/ errors/ issues.

    I appreciate both of your time for resolving the issue.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1