Filling cells from vba

dgs2001

Board Regular
Joined
Apr 1, 2007
Messages
139
Hi all

I am in the process of trying to fill a matrix of cells from vba but am struggling to get it right.
Starting at cell B120 I have the numbers 1 to 50 in every other cell.

What I am trying to do is now populate columns starting at cell A121 with each of the possible combinations of the numbers 1 to 50, so I end up with a matrix of three number combinations eg cell b122 is 1(from the column):2:4(from the row)

Eg in cell a121 I need 2:3 then in cell a122 2:4 etc down to 50:49
In cell c121 I need 1:3 then in cell c122 1:4 etc

can anybody help?


Thanks duncan
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,224,584
Messages
6,179,691
Members
452,938
Latest member
babeneker

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top