Overflow error 6
Raj B
1
Reputation point
the code below is giving overflow error 6 - Excel VBA
Dim LR As Long 'LR = Last Row'
Dim kSum As Long 'Sum of Column K'
Workbooks("T12 - Business_turnover.xlsx").Worksheets("T12 - Business_turnover").Activate
LR = Cells(Rows.Count, 11).End(xlUp).Row
MsgBox LR
kSum = CLng(Application.WorksheetFunction.Sum(Range("K2:K" & LR)))
MsgBox kSum
Developer technologies Visual Basic for Applications
1,507 questions
Sign in to answer