ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   COpy formulas from one workbook to another workbook (https://www.excelbanter.com/excel-discussion-misc-queries/176344-copy-formulas-one-workbook-another-workbook.html)

Jeff

COpy formulas from one workbook to another workbook
 
Hi,

I am copying formulas from Workbook1 to workbook2.

Here is the problem - formulas still reference the old workbook1.

like: Cell(A1) = '[Workbook1.xls]worksheet'!E3

But I really don't want the "Workbook1.xls" I just want

Cell(A1) = worksheet!E3

Thanks!

Dave Peterson

COpy formulas from one workbook to another workbook
 
If you're only doing one formula, then copy from the formulabar--and paste into
the formulabar.

If you have lots of cells, change the formulas to text.

Select all the cells
edit|replace
what: = (equal sign)
with: $$$$$=
replace all

Then do the copy

And then do the edit|replace in reverse -- in both the original worksheet and
the new worksheet.

Jeff wrote:

Hi,

I am copying formulas from Workbook1 to workbook2.

Here is the problem - formulas still reference the old workbook1.

like: Cell(A1) = '[Workbook1.xls]worksheet'!E3

But I really don't want the "Workbook1.xls" I just want

Cell(A1) = worksheet!E3

Thanks!


--

Dave Peterson

Jeff

COpy formulas from one workbook to another workbook
 
Thanks - that is so simple solution

"Dave Peterson" wrote:

If you're only doing one formula, then copy from the formulabar--and paste into
the formulabar.

If you have lots of cells, change the formulas to text.

Select all the cells
edit|replace
what: = (equal sign)
with: $$$$$=
replace all

Then do the copy

And then do the edit|replace in reverse -- in both the original worksheet and
the new worksheet.

Jeff wrote:

Hi,

I am copying formulas from Workbook1 to workbook2.

Here is the problem - formulas still reference the old workbook1.

like: Cell(A1) = '[Workbook1.xls]worksheet'!E3

But I really don't want the "Workbook1.xls" I just want

Cell(A1) = worksheet!E3

Thanks!


--

Dave Peterson



All times are GMT +1. The time now is 05:34 PM.

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