# Lost reference with Dynamo export to Excel

**URL:** <https://forum.dynamobim.com/t/lost-reference-with-dynamo-export-to-excel/27661>\
**Category:** Revit\
**Tags:** excel\
**Created:** [October 25, 2018, 8:25pm UTC](https://forum.dynamobim.com/t/lost-reference-with-dynamo-export-to-excel/27661 "2018-10-25T20:25:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.vermeulen](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@r.vermeulen](https://forum.dynamobim.com/u/r.vermeulen)\
**Post date:** [October 25, 2018, 8:25pm UTC](https://forum.dynamobim.com/t/lost-reference-with-dynamo-export-to-excel/27661/1 "2018-10-25T20:25:34Z")

</div>

Hi,  
I have made a Dynamo script that exports data to a separate tab in Excel (let’s say tab1;celA1). In Excel I cross reference this value to another cel in another tab (tab2;celA2).  
Now when I re-run my script it looks like Dynamo deletes tab1 so tab2;celA2 does not have a reference anymore (#NB) and then again it creates the tab1 with the exported data to cel A2. But the cross-reference tab2;celA2 stays lost.

How do I fix this so that the cross-reference stays intact? Or is there a way so that Dynamo does not first delete the tab but only refreshes the data input in the tab?

Anyone

---

<div class="post-metadata">

**Author:** ![Marcel\_Rijsmus](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/marcel_rijsmus/32/8539_2.png) [@Marcel\_Rijsmus](https://forum.dynamobim.com/u/Marcel_Rijsmus)\
**Post date:** [October 25, 2018, 8:51pm UTC](https://forum.dynamobim.com/t/lost-reference-with-dynamo-export-to-excel/27661/2 "2018-10-25T20:51:16Z")

</div>

Try an “in between” second excel file is my first thought  
I think under Data is the excel function that takes a data source (your second excel file)

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [October 25, 2018, 9:30pm UTC](https://forum.dynamobim.com/t/lost-reference-with-dynamo-export-to-excel/27661/3 "2018-10-25T21:30:14Z")

</div>

Maybe look here?

> [@Exporting to multiple sheets in a single Excel Export](https://forum.dynamobim.com/t/exporting-to-multiple-sheets-in-a-single-excel-export/27508/5):
>
> The codeblock adds a blank row to separate the CAD and Revit files in the Excel worksheet.

Hope that helps,

Mark

---

<div class="post-metadata">

**Author:** ![r.vermeulen](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@r.vermeulen](https://forum.dynamobim.com/u/r.vermeulen)\
**Post date:** [October 26, 2018, 6:39am UTC](https://forum.dynamobim.com/t/lost-reference-with-dynamo-export-to-excel/27661/4 "2018-10-26T06:39:56Z")

</div>

Hi Marcel,

I guess this would work but a second “in between” file is not what I want. I’d hoped one of you would have a solution.

---

<div class="post-metadata">

**Author:** ![r.vermeulen](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@r.vermeulen](https://forum.dynamobim.com/u/r.vermeulen)\
**Post date:** [October 26, 2018, 6:41am UTC](https://forum.dynamobim.com/t/lost-reference-with-dynamo-export-to-excel/27661/5 "2018-10-26T06:41:24Z")

</div>

Maybe the problem is not Dynamo but is in Excel. Maybe a checkbox or something that keeps cross-references in tact.

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [October 26, 2018, 8:31am UTC](https://forum.dynamobim.com/t/lost-reference-with-dynamo-export-to-excel/27661/6 "2018-10-26T08:31:38Z")

</div>

Hey,

Not sure what your problem is? It works for me…

Hope that helps,

Mark

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/9/b97bb638b3db4a001ceda8d96a748a9a6a7dd498.png)
