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

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
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
 
Upvote 0

Forum statistics

Threads
1,218,560
Messages
6,143,202
Members
450,469
Latest member
brent3162

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
Back
Top