Auto Edit Excel VBA
Auto Edit Excel VBA
xlsm
' Only trigger the copy if the change occurs within the range you care about
If Not Intersect(Target, Me.Range("A1:B200")) Is Nothing Then
' Set source range
Set sourceRange = Me.Range("A1:B200")
destinationRange2.PasteSpecial Paste:=xlPasteValuesAndNumberFormats
destinationRange2.PasteSpecial Paste:=xlPasteFormats
destinationRange2.PasteSpecial Paste:=xlPasteColumnWidths
destinationRange3.PasteSpecial Paste:=xlPasteValuesAndNumberFormats
destinationRange3.PasteSpecial Paste:=xlPasteFormats
destinationRange3.PasteSpecial Paste:=xlPasteColumnWidths
destinationRange4.PasteSpecial Paste:=xlPasteValuesAndNumberFormats
destinationRange4.PasteSpecial Paste:=xlPasteFormats
destinationRange4.PasteSpecial Paste:=xlPasteColumnWidths