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
 

Some videos you may like

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,491
Messages
5,596,466
Members
414,069
Latest member
StudExcel

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