Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

Need help with Macro and linked books , when moving from 1 row to next data does not paste in order

$
0
0

I have 5 individual books that are all linked together.  The main book called the "Input" book takes 4 to 6 numbers and feeds the other 4 external books.  When this data goes out it does a lot of different things that produce several different statistics.  The issue I am having is when I reset from one row to the next my data will get scrambled and I can not figure out why.   I feel this may be hard to explain but I will try my best.  this is an example of the input book with the reset

Image

What I do is put the numbers in I:N and then when I save this book it starts all the calculations and feeds the external books.  This is not an issue and works great.  Lets say I want to reset from row 2 to row 3.  I will place the Game Number from that row (Game 50)  so I will place a 50 in Q:5 and hit the reset.  This will move all the numbers down 1 row and all the external books will update accordingly.  

Here is an example of what 3 of 18 sheets from 1 book and the sheets I am having issues with.  They are called E-O, EO and EEOO and will all start with row 2 also.

Image

Image

Image

Now, what happens again is when I do a reset from the Input book all these go down 1 row too and all the data should follow exactly how it is from say row 50 to row 49.  Whatever is in row 49 should go to row 48, row 48 to row 47 and so on every time I do a reset.

Here is 1 reset to the next row

Image

Image

Image

Here are 4 games from Game 50 to Game 47 for comparisons.  What you will see is Game 50 row 2 is EOEE, a reset from row 2 to 3 Game 49 it is EOEE, now from row 3 to row 4 Game 48 it changes to OOEE and then from row 5 to row 6 it changes to EOOE.  These should all move down in order and whatever is in row 2 for Game 50 should be in row 6 for Game 46

E-O

Image

The EO and EEOO sheets do not go out or order as much as the E-O but they still go out of order.  If you notice Row 5 Game 50 is UDDU but on Game 49 when it goes to row 5 it changed to UDDD

Image

The EEOO

Image

If anyone can help me figure this out I will be in your debt forever.  I have been racking my brain on this for almost 2 years, posting it on and off on forums with no help in sight.  I have not tried this forum but from what I can tell some of the smartest folks are here and I know someone is smart enough to help

Thanks y'all

Here is the Input book and 1 of the external books.  They are already linked so when you do a reset they should go down one row at a time but you may not even need them because you can follow the formulas I m sure

Input Book

OB Book

OB Book

Now, by design when you reset these books some rows WILL change due to certain criteria.  The examples above I simply took the data from row 2 and placed in in row 49, row 49's data and placed it in row 48 and so on.  I never actually did a reset.  I did the example specifically to show that somewhere something is not right because when I go down from 1 row to the next they should all change accordingly.  You will notice the E-O changes more than the EO and EEOO.  Some of the EEOO and EO never change

Viewing all articles
Browse latest Browse all 11829

Trending Articles



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