Dear VBA Experts!
I am trying to create a vba macro that can copy values from a specific range and paste special (add) to the values in another range without changing the subtotals in the target column. But something somewhere went wrong. Could you please help me in this regards to debug the issue.
Here is the code which I did.
![]()
Sub copypasteaddvalues() Dim ws As Worksheet For Each ws In ThisWorkbook.Worksheets If ws.Name <> "*Conso" Or ws.Name <> "Sheet*" Or ws.Name <> "Graph*" Or ws.Name <> "Data*" Then _ Range("H15:H50").Copy Range("F15").PasteSpecial Paste:=xlPasteValues, _ operation:=xlAdd, skipblanks:=False Next ws End Sub
Bookmarks