[Solved] How to use arrays in VBA functions? [closed]
[ad_1] Jeeped’s comment is a very probable reason of your code malfunctioning, unless you have Option Base 1 at the top of your code pane. so either you have/place that statement or you change the ReDim statements to ReDim B(1 To nrows, 1 To ncols) As Double moreover you must invert Next I and Next … Read more