Run-time error '451
Property let procedure not defined and property get procedure did not return an object.
Property let procedure not defined and property get procedure did not return an object.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Sub Cells_Test1()
For i = 1 To 5
For j = 1 To 6
ActiveSheet.Cells.Value(i, 7) = _
ActiveSheet.Cells.Value(i, 7) + ActiveSheet.Cells.Value(i, j)
Next
Next
End Sub
Sub Cells_Test2()
For i = 1 To 5
For j = 1 To 6
ActiveSheet.Cells(i, 7).Value = _
ActiveSheet.Cells(i, 7).Value + ActiveSheet.Cells(i, j).Value
Next
Next
End Sub