Okay, so I was thinking and came up with a better solution if it is doable. How about the macro would be something like this doing the thing in the comments?
Sub CopyCombinationForLP()
' CopyCombinationForLP Macro
' Copy Combinations For Linear Programming Working And Copy Results in New Sheet
' Need this part to loop for a number of times depending on "cell value P1":
Sheets("Combinations Prior LP").Select
Range("P6:Z6").Select 'need this range to change +1 row every loop for a total of "cell value in P1" in sheet "Combination Prior LP
Selection.Copy
Sheets("Linear Programming Combination ").Select
Range("A1").Select 'Need this range stays the same for each loop
ActiveSheet.Paste Link:=True
Sheets("LP Combination 1 ").Select
Range("A2:G32").Select 'need this range to stay the same for each loop
Application.CutCopyMode = False
Selection.Copy
Sheets("Linear Programming Combination ").Select
Range("A2").Select 'Need this range to stay the same for each loop
ActiveSheet.Paste
Range("I10").Select 'This one stays the same foe every loop
Range("B32:E32").Select 'Need this range to stay the same for each loop
Application.CutCopyMode = False
Selection.Copy
Sheets("Linear Programming Results").Select
Range("A2").Select 'need this one to shift +1 row every loop
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Sheets("Combinations Prior LP").Select
End Sub
I think this is a doable solution given that I only need the table of results from the linear programming combination. The maximum Combination I can achieve is 10000. Below are link to screenshots of what I am trying to copy and paste:
First Step : https://dl.dropboxusercontent.com/u/83126653/Combinations%20Prior%20LP.png
Second Step: https://dl.dropboxusercontent.com/u/83126653/Linear%20Programming%20Combination.png
Hope this help more. Please help me