+ Reply to Thread
Results 1 to 4 of 4

Break Links in Worksheet but keep data

  1. #1
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    370

    Break Links in Worksheet but keep data

    I have some code on a workbook that deletes all Conditional Formatting but keeps all the colours imposed by all the rules.

    On another workbook I would like to do the same, but for External Links and supplied data.

    I have a Template Worksheet that is copied and made into the current week Briefing Sheet. At the end of the week I am required to save this worksheet as a PDF and email it to all staff, but before sending it I want to be able to break all of the links to external data for that specific worksheet so that if it is opened again in the future the data will be relevant for the week it was archived.

    I plan to put a Macro Button on my Template Sheet so that when it is copied the Macro will be in place for the end of the week, but i am unable to find any usable code to break the links but keep the data.

    Anyone able to help?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,291

    Re: Break Links in Worksheet but keep data

    I think all you need is some code to convert given ranges to values. If the ranges are pretty fixed, you could record a macro (Copy > Paste Special > Values) and attach the code to a button or try to incorporate it into the code you have already.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Break Links in Worksheet but keep data

    There are different types of links. Have you tried the breaklinks method?

    https://learn.microsoft.com/en-us/of...book.breaklink

  4. #4
    Forum Contributor
    Join Date
    07-07-2014
    Location
    Nottingham
    MS-Off Ver
    Office 2016
    Posts
    370

    Re: Break Links in Worksheet but keep data

    Hi BM

    i will have a look at that now.

    In the meantime I have tried recording a macro with the following code
    Please Login or Register  to view this content.
    If I add in "ActiveSheet.Unprotect Password:="SSD84006"" before the End Sub it throws up all sorts of errors.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Edit Links - Break Links not working
    By dmang1 in forum Excel General
    Replies: 10
    Last Post: 03-16-2017, 12:43 PM
  2. Break links within one cell but not all the links...
    By kgallo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-23-2016, 12:11 PM
  3. Break some links within a cell, but not all links...
    By kgallo in forum Excel General
    Replies: 2
    Last Post: 08-22-2016, 06:09 PM
  4. Break External Data Links - Error Runtime 13
    By brainzlp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2016, 12:52 PM
  5. Break Internal Worksheet links in a file
    By lalaarif1 in forum Excel General
    Replies: 1
    Last Post: 10-11-2015, 03:16 PM
  6. Completely remove/delete all the external links (Break Links)
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2014, 05:31 AM
  7. how to break links wih data imported into Excel
    By jagguy in forum Excel General
    Replies: 2
    Last Post: 04-30-2008, 07:10 PM

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