Code Exporting

trsisko

Board Regular
Joined
May 20, 2008
Messages
176
I hav the following formula in a workbook. I export the work sheet to another workbook.

When doing this using the file save as dialog the new work book always refers to the original workbook. Can I prevent this?


=IF(ISNA(MATCH(B1,Output!$D:$D,FALSE)),"",INDEX(INDIRECT("Output!$A$1:$D$99"),MATCH(B1,Output!$D:$D,FALSE),3))
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
If it's only a single cell, then copy the formula instead of the cell (ie highlight the text in the formula bar above the cells).

If it is many cells, then probably the easiest way I have come across is to convert the cells to text before copying (do this by replacing = with ### or some unique occurrence), copy across, and convert back by reversing the Find/Replace.
 
Upvote 0
or edit links and change source to new workbook (from old) -- assuming you have no other valid links present in the file (to other files)
 
Upvote 0

Forum statistics

Threads
1,215,324
Messages
6,124,249
Members
449,149
Latest member
mwdbActuary

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