montecarlo2012
Well-known Member
- Joined
- Jan 26, 2011
- Messages
- 986
- Office Version
- 2010
- Platform
- Windows
Hello people.
supposedly with this logic a Cruz will be generate
It is not working,
Please, your inputs are appreciated
Thanks.
VBA Code:
Sub java_to_vba()
n = 5
For i = 1 To n
For j = 1 To n
If i = (n / 2) + 1 And j = (n / 2) + 1 Then
Cells(i, j) = " + "
Else
Cells(i, j) = ""
End If
Next
Next
End Sub
It is not working,
Please, your inputs are appreciated
Thanks.