LINKED CELLS - want to leave linked cells behind?

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,782
Office Version
  1. 2016
Platform
  1. Windows
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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

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,181,687
Messages
5,931,431
Members
436,789
Latest member
portugeezers

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