COpy formulas from one workbook to another workbook

J

Jeff

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!
 
D

Dave Peterson

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.
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!
 
J

Jeff

Thanks - that is so simple solution

Dave Peterson said:
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.
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top