I'm in the process of building a complex workbook that requires me to dive into manual calculations (which is an uncharted territory for me). I need to be able to calculate specific areas of the sheet which is working correctly, however I need to be able to drag a series and calculate each row during this process.
If A1 is Modified B1 Calculates
If A1:A5 (Drag Series) is Modified B1:B5 Calculates = Code Results in Run-Time Error '13': Type Mismatch
VBA (Sheet1)
Mod edit: Code tags added
If A1 is Modified B1 Calculates
If A1:A5 (Drag Series) is Modified B1:B5 Calculates = Code Results in Run-Time Error '13': Type Mismatch
VBA (Sheet1)
Code:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column = 1 Then
ThisRow = Target.Row
If Target.Value >= 0 Then
Range("B" & ThisRow).Calculate
End If
End If
End Sub
Mod edit: Code tags added
Last edited by a moderator: