Links to Hard Values

Actuariojf

New Member
Joined
Aug 29, 2002
Messages
15
I usually develop large excel workbooks that have just one output sheet which is linked with all other sheets in the workbook. However, when I have to deliver this output to other people I copy the output page to a new book, but all the links remain there as "=C:path ... ", so now I have to locate manually all the linked cells and do a copy-paste special as value, after that I change each one of the old linked cell to BOLD and colored them to BLUE.

My question, Can somebody do a macro that can locate automatically anywhere all the linked cells in an entire sheet, highlight these cells as blue bold and make the cell a hard values, so there will not be more links and all old linked cells will be easily identifiable in the sheet?

Thanks

Actuariojf
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
Yes.

Code:
Sub Test()
    Dim c As Range
    For Each c In Selection.SpecialCells(xlCellTypeFormulas, 23)
        If InStr(1, c.Formula, "[") <> 0 Then
            c.Value = c.Value
            c.Font.Bold = True
            c.Font.ColorIndex = 5
        End If
    Next c
End Sub
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,424
Messages
5,837,155
Members
430,479
Latest member
mamush200

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top