June 13th, 2013, 8:50 am
Dim rngInput As Range, rngStart As Range, rngoutput As Range Set rngStart = Range("B2") Set rngoutput = Range("S2") Set rngInput = Range(rngStart.Cells(1, 1), rngStart.Cells(3, 3)) Range(rngoutput.Cells(1, 1), rngoutput.Cells(rngInput.Rows.Count, rngInput.Columns.Count)) = Application.MInverse(rngInput) (if you use Application.WorksheetFunction.MInverse, you have to deal with the flimsy exception management of VBA)
Last edited by
bluetrin on June 12th, 2013, 10:00 pm, edited 1 time in total.