Sub Multiply_by_row_4()
Dim rng As Range, Target As Range, storeselection as object
set storeselection = selection
Set target = activesheet.range("B4:CB4")
'If Not Intersect(Target, Rows(4)) Is Nothing Then
' For Each rng In Intersect(Target, Rows(4))
For Each rng In Target
If rng.Value <> 0 And IsNumeric(rng) Then
' Application.EnableEvents = False
rng.Copy
rng.Offset(-2, 0).Resize(2, 1).PasteSpecial operation:=xlPasteSpecialOperationMultiply
' Application.EnableEvents = True
End If
Next rng
Application.CutCopyMode = False
' Target.Select
storeselection.select
'End If
End Sub
Try the above in standard module
Bookmarks