If you change it to
It will only run when you change a value. Entering data will still cause the undo stack to be cleared.Rich (BB code):Private Sub Worksheet_Change(ByVal Target As Range) On Error Resume Next Dim WW_Template As Workbook Set WW_Template = Application.ActiveWorkbook Dim InputSheet As Worksheet Set InputSheet = WW_Template.Worksheets("INPUT") Dim SampleSheet As Worksheet Set SampleSheet = WW_Template.Worksheets("Sample") Dim Sh As Shape For Each Sh In SampleSheet.Shapes Sh.Delete Next Sh GenerateViews End Sub
correct.So unless I delete this code, it will always clear the stack changing a value?
Technically that is possible to do mbut it would still cause the undo stack to be cleared.Can I put this code somehow on another tab that we dont do input from and have it pull the values from the input tab?
correct.
Technically that is possible to do mbut it would still cause the undo stack to be cleared.