LINKED CELLS - want to leave linked cells behind?

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,778
When I copy a sheet from one workbook to another workbook and it has formulas in it the formulas want to link to the old book.

Is there anyway to stop this. I have to go back and delte all the links and it is driving me crazy ...
This message was edited by on 2002-10-18 09:38
This message was edited by em on 2003-02-09 17:35
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
This code will remove your links (quicker than you can manually):

Code:
Sub Test()
    Dim Rng As Range
    Dim c As Range
    Set Rng = ActiveSheet.Cells.SpecialCells(xlCellTypeFormulas, 23)
    For Each c In Rng
        If InStr(1, c.Formula, "[") Then
            c.Value = c.Value
        End If
    Next c
End Sub
 

Forum statistics

Threads
1,143,613
Messages
5,719,708
Members
422,242
Latest member
hishamkhatri

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