ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   paste formulas between workbooks without workbook link (https://www.excelbanter.com/excel-discussion-misc-queries/25853-paste-formulas-between-workbooks-without-workbook-link.html)

ron

paste formulas between workbooks without workbook link
 
Hello,
I want to copy and paste several cells, each containing
formulas, from one workbook to another. The formulas
contain references to several different sheets and I want
the paste to contain the formulas exactly as they are in
the originating workbook. When I paste these cells into
the destination workbook, however, the formulas have
inserted in them links to the originating workbook file
name.

The only way I can see to solve this problem is to
individually select each cell, copy its formula from the
edit formula field and then paste it into the edit formula
field in the destination workbook. There are a lot of
cells to copy and paste, so doing this cell by cell is not
very feasible. Does anyone have any suggestions? Is there
an option in Excel to disable the workbook link appearing
in the formulas in the target workbook?

thanks
Ron


ExcelBanter AI

Answer: paste formulas between workbooks without workbook link
 
Hi Ron,

I understand that you want to copy and paste cells with formulas from one workbook to another without having the workbook link appear in the formulas in the target workbook. I can definitely help you with that.

One way to achieve this is by using the "Paste Special" feature in Excel. Here are the steps:
  1. Select the cells containing the formulas that you want to copy.
  2. Right-click on the selected cells and choose "Copy" or press "Ctrl+C".
  3. Go to the destination workbook and select the cell where you want to paste the formulas.
  4. Right-click on the selected cell and choose "Paste Special" or press "Ctrl+Alt+V".
  5. In the "Paste Special" dialog box, select "Formulas" and uncheck the "Paste link" option.
  6. Click "OK" to paste the formulas without the workbook link.

This method will copy and paste the formulas exactly as they are in the originating workbook, without any links to the original file. You can also use the keyboard shortcut "Ctrl+Shift+V" to open the "Paste Special" dialog box directly.

Formula:

// No macro or Visual Basic code found in the text. 


Peo Sjoblom

Here is a way, maybe not very elegeant but working.
First in the source sheet, select the sheet, do editreplace and in find
what put equal sign =, then replace with use for instance ^^ (something that
you are sure is not in the worksheet), then copy everything to the new
workbook, then in the new workbook reverse replacement with = replacing ^^,
then finally reverse replacement in the source workbook


Regards,

Peo Sjoblom

"ron" wrote:

Hello,
I want to copy and paste several cells, each containing
formulas, from one workbook to another. The formulas
contain references to several different sheets and I want
the paste to contain the formulas exactly as they are in
the originating workbook. When I paste these cells into
the destination workbook, however, the formulas have
inserted in them links to the originating workbook file
name.

The only way I can see to solve this problem is to
individually select each cell, copy its formula from the
edit formula field and then paste it into the edit formula
field in the destination workbook. There are a lot of
cells to copy and paste, so doing this cell by cell is not
very feasible. Does anyone have any suggestions? Is there
an option in Excel to disable the workbook link appearing
in the formulas in the target workbook?

thanks
Ron



Dave Peterson

I select my range to copy
edit|replace
what: = (equal sign)
with: $$$$$= (some unique string)
replace all

Now my formulas are just text.

Then copy|paste

Then clean up both ranges:
select the range
edit|replace
what: $$$$$= (that same unique string)
with: = (equal sign)
replace all

Now my text strings are formulas again.

(Make sure you have worksheets in that new workbook that match up--else you'll
be dismissing lots of dialogs!)

I'd fix one formula manually just to test.

===
Alternatively, copy and paste like you did
and then edit|links|change source
may work nicely for you.

ron wrote:

Hello,
I want to copy and paste several cells, each containing
formulas, from one workbook to another. The formulas
contain references to several different sheets and I want
the paste to contain the formulas exactly as they are in
the originating workbook. When I paste these cells into
the destination workbook, however, the formulas have
inserted in them links to the originating workbook file
name.

The only way I can see to solve this problem is to
individually select each cell, copy its formula from the
edit formula field and then paste it into the edit formula
field in the destination workbook. There are a lot of
cells to copy and paste, so doing this cell by cell is not
very feasible. Does anyone have any suggestions? Is there
an option in Excel to disable the workbook link appearing
in the formulas in the target workbook?

thanks
Ron


--

Dave Peterson


All times are GMT +1. The time now is 08:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com