Hello NukedWhale,
Here is the updated macro...
Sub CreateMatrixVector()
Dim MySum As Long
Dim SumRng As Range
Dim SourceSheet As Worksheet
Dim WeightingRange As String
'Original worksheet
Set SourceSheet = ActiveSheet
'Prompt for Weighting Range
WeightingRange = InputBox("Please enter the column letter of the column used for weighting")
'Sum the cells in choosen column
With SourceSheet
SumRng = .Range(.Cells(2, WeightingRange), .Cells(.Rows.Count, WeightingRange).End(xlUp))
MySum = WorksheetFunction.Sum(SumRng)
End With
End Sub
Bookmarks