I'm looking to make my spreadsheets more efficient by beginning to move all my formulas to vba. Hoping to speed things up and get better at using VBA so I'm not expecting this to be easy but worth giving it ago!
My first question is, how would you write code for a selection of cells? For example, I'm using a basic multiplication grid as an example with my screenshots so say I have a formula in one cell and I'm trying to drag it down by 9 rows and across by 9 columns.
The code in the following cell is: =B$2*$A3
And then because I have locked the rows in the first reference and the columns in the second, you just drag the cells down and across and the numbers autofill no problem at all.
What would be the most efficient way of doing this with more complicated formulas that each have 10+ references in? If somebody could type out an example or direct me to some specific reading that would really help me out! There seems to be so many ways of referencing a single cell, when looking at multiple cells going off in two directions it just becomes a little difficult to work out the most effective way of organising it.
Cheers,
Callum
