Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 12262

Re: Referencing worksheets

$
0
0

Deepak Somasundaram wrote:

 

I tried renumbering, but have lot of index to the variables and it might take more time. Regarding the second option, I am not sure how it can be done. I have couple of  inputs in worksheet A which has to be transfered to sheet B and the results from sheet B has to be used sheet A for more calculations.

Neither the input to nor the output from B should be any problem. The input variables have to be defined in sheet A before the reference call to B and you have to take care that you use the vers same variable names here in sheet A which sheet B expects and that those variables are not redefined at the top of B. As for the output variables - sheet A simply has to know their names in sheet B and is able to use them after the reference to B.

 

The only probelm which can occur is the sheet B may have side effects and changes (because it uses the same names) inadvertently and undesirably variables in A. So you sure have to rework sheet B, either closely looking at its variable names or possibly prefixing every variable name by something like "B_"... which hopefully does not conflict with variable names in sheet A.


Viewing all articles
Browse latest Browse all 12262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>