Hi,
I have some code to output arrays. But the problem is that when the column changes I need to update all the code.
My question - is there some way to re-write this so that I can use offset and only update a single line of code?
Range("BO39:BO116").Value = Application.Transpose(aa)
Range("BP39:BP116").Value = Application.Transpose(cc)
Range("BQ39:BQ116").Value = Application.Transpose(dd)
Range("BR39:BR116").Value = Application.Transpose(ee)
Range("BS39:BS116").Value = Application.Transpose(ff)
Range("BT39:BT116").Value = Application.Transpose(gg)
Range("BU39:BU116").Value = Application.Transpose(hh)
Range("BV39:BV116").Value = Application.Transpose(x)
Range("BW39:BW116").Value = Application.Transpose(ii)
Range("BX39:BX116").Value = Application.Transpose(tt)
Range("BY39:BY116").Value = Application.Transpose(jj)
Range("BZ39:BZ116").Value = Application.Transpose(ss)
I have some code to output arrays. But the problem is that when the column changes I need to update all the code.
My question - is there some way to re-write this so that I can use offset and only update a single line of code?
Range("BO39:BO116").Value = Application.Transpose(aa)
Range("BP39:BP116").Value = Application.Transpose(cc)
Range("BQ39:BQ116").Value = Application.Transpose(dd)
Range("BR39:BR116").Value = Application.Transpose(ee)
Range("BS39:BS116").Value = Application.Transpose(ff)
Range("BT39:BT116").Value = Application.Transpose(gg)
Range("BU39:BU116").Value = Application.Transpose(hh)
Range("BV39:BV116").Value = Application.Transpose(x)
Range("BW39:BW116").Value = Application.Transpose(ii)
Range("BX39:BX116").Value = Application.Transpose(tt)
Range("BY39:BY116").Value = Application.Transpose(jj)
Range("BZ39:BZ116").Value = Application.Transpose(ss)