LINKED CELLS - want to leave linked cells behind?

itr674

Well-known Member
Joined
Apr 10, 2002
Messages
1,786
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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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
 
Upvote 0

Forum statistics

Threads
1,214,990
Messages
6,122,626
Members
449,094
Latest member
bsb1122

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