montecarlo2012
Well-known Member
- Joined
- Jan 26, 2011
- Messages
- 984
- Office Version
- 2010
- Platform
- Windows
Hello.
Trying to explain to myself VBA. I got the anatomy of this code in order to understand How to change or manipulate the for loop results any way I need,
so what I learn from here is:
now if I want HORIZONTAL answer I know I can change for this one
so I will get all my results in one row, or for me just an horizontal answer.
In this moment my question is:
with this line I get horizontal answers, then
how can I change this line to get VERTICAL answer.
Thanks for reading.
Trying to explain to myself VBA. I got the anatomy of this code in order to understand How to change or manipulate the for loop results any way I need,
so what I learn from here is:
Cells(Rw, "H").Value = Cells(Rw, "H").Value + Cells(Rw, Cl).Value with this line I can get my result on a column or for me just a vertical answer. |
Cells(30, Rw).Value = Cells(30, Rw).Value + Cells(Rw, Cl).Value |
In this moment my question is:
Rows(0).Formula = "=SUMPRODUCT(--(" & rngData.Resize(NoRows - i, 1).Address(0, 0) & "=" & .Columns(1).Address(0, 0) & "))" |
how can I change this line to get VERTICAL answer.
Thanks for reading.