VBA newbie over here. I’m trying to use an array formula through excel vba but I can’t seem to specify a dynamic range for the formula. I have:
Range("xyz").FormulaArray = "=somefunction(Data!RC:R[8]C[49])"
But next time it could be
Range("xyz").FormulaArray = "=somefunction(Data!RC:R[15]C[32])"
This doesn’t seem to work. Is there any solution to this?
If by dynamic range you mean a range whose size is determined by VBA variables (for instance jRow and kCol) then
If you are asking how to determine how many rows and columns in an area are occupied look at