Forum Discussion
Bacon117
Jan 20, 2023Copper Contributor
Pasting structured references results in link instead of normal formula
If I copy cells from a table in workbookA then paste into another table in workbookB, any formulas with structured references will remain linked to the table in workbookA. However, I want the structured references to refer to the table in workbookB, just like they do for normal (non-table formatted) cells.
Specifically, if I have a cell in workbookA tableA with the formula "=[@[Start Date]]+4", when I copy that cell into tableB in workbookB, it changes to "='workbookA.xlsm'!Input[@[Start Date]]+4." I don't want this automatic link to be pasted, I want it to remain "=[@[Start Date]]+4"
If I copy a normal formula say "A4+2", it remains "A4+2" when I paste it, no link. So, is there anyway to disable automatic link creation when working with structured references?
- mathetesSilver Contributor
I don't know if this is the answer, but it'd be the first thing I'd try. That would be to use Paste Special...Formulas
You could also (though it may just be a "manual version" of the above) try to copy the formula from the formula bar rather than from the cell in which it appears.
- Bacon117Copper ContributorI tried all the options in paste special, nothing changed the outcome. It seems to default to the "Paste Link" option and no way to paste anything but that.
Copying and pasting the text of the formula is a valid workaround, but if I'm copying and pasting a lot of cells, this isn't a viable option. Another option is to create a script, BUT I'm looking for something compatible with normal copy/paste first.- mathetesSilver Contributor
Without knowing the full context here, it's hard to suggest specific solutions. Only things to try, which may be utterly irrelevant.
One other thing that occurs to me--again, without knowing the context--but rather than copy and paste lots of pieces, is to create a template based on that first file, and then use it in creating the second.
If that's something you've considered and rejected, already, then rather than have us guess in the dark, maybe you could give a more complete sense of what you're working with, what you've tried, etc.