I want to multiply everything within the range by a value. I tried this format, but the values became way off.
Code :
Dim yl1 As Range
Set yl1 = .Range(.Cells(17, 6), .Cells(n + 16, 6))*19.25
I want to multiply everything within the range by a value. I tried this format, but the values became way off.
Code :
Dim yl1 As Range
Set yl1 = .Range(.Cells(17, 6), .Cells(n + 16, 6))*19.25
Another way:
Where B1 is some un-used cell and n is whatever it happens to be.
There are probably other ways, many of them probably better, but one is just a loop
I find this way the most intuitive, though.
As per the link:
It will do them all at once.