montecarlo2012
Well-known Member
- Joined
- Jan 26, 2011
- Messages
- 986
- Office Version
- 2010
- Platform
- Windows
Hello people.
with this code the output is:
It is not, what I expected
This is what is
my goal
Thank you for reading this
Please, anyone give me a hand here.
VBA Code:
Sub April_16()
For i = 1 To 5
For j = 1 To i
Cells(i, j).Value = j
For k = i + 1 To j
Cells(i, j).Value = 1
Next
Next
Next
End Sub
It is not, what I expected
This is what is
my goal
Thank you for reading this
Please, anyone give me a hand here.