Might need some more details then. Let me show you how/what I would do. I have two tables, Untitled and Untitled 2. Both tables have two columns named X and Y.
In the Untitled table I created an analysis using Fit Y by X and saved the script to a data table.
There should be nothing in this script that is specific to the data table.
Now I right-click on the script in the table panel and choose copy.
Switch over to Untitled 2. Go to the table panel, right-click and choose Paste.
Clicking the green "run" triangle will provide the same graph on this new data table.
So in order to best help, perhaps we will need to know about the script you are using since there must be SOMETHING that refers to that specific data table.
Dan Obermiller