irisqueiroz
Member
Hi! Could anyone help me with this problem?
I´m trying to run a code, but I don´t know why when I press F8 to check each step of the code lines, it´s jumping the For Next loop step. I´ll write the code here, and if you see any mistake, please tell me, because I can´t!
Ps: The idea of the code is a matrix multiplication... It´s a 25x25 matrix (range g0) x 25x1 matrix (range y). It´s not the computation in fact, I just want it to show me how the multiplication would look like.
[pre]
[/pre]
Thanks!
I´m trying to run a code, but I don´t know why when I press F8 to check each step of the code lines, it´s jumping the For Next loop step. I´ll write the code here, and if you see any mistake, please tell me, because I can´t!
Ps: The idea of the code is a matrix multiplication... It´s a 25x25 matrix (range g0) x 25x1 matrix (range y). It´s not the computation in fact, I just want it to show me how the multiplication would look like.
[pre]
Code:
Sub multmatriz()
Dim wg0 As Worksheet
Dim wy As Worksheet
Dim wg0y As Worksheet
Dim g0 As Range
Dim y As Range
Dim a As Long
Dim b As Long
Set wg0 = Worksheets("g0")
Set wy = Worksheets("matriz y")
Set wg0y = Worksheets("g0y")
Set g0 = wg0.Range("g0")
Set y = wy.Range("y")
a = 1
b = 1
For a = 1 To a = 25
For b = 1 To b = 25
wg0y.Cells(a, b) = g0.Cells(a, b).Value & "*" & y.Cells(b, 1)
Next
Next
End Sub
Thanks!