undo button not working

jrisebo

Active Member
Joined
Mar 15, 2011
Messages
325
Office Version
  1. 365
Platform
  1. Windows
when I do something, then go on to something else, the undo button isnt working. I have read that it could be VBA causing this, how do I find out which one, and correct?
 
If you change it to

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
It will only run when you change a value. Entering data will still cause the undo stack to be cleared.

So unless I delete this code, it will always clear the stack changing a value? 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?
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
So unless I delete this code, it will always clear the stack changing a value?
correct.

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?
Technically that is possible to do mbut it would still cause the undo stack to be cleared.
 
Upvote 0
correct.

Technically that is possible to do mbut it would still cause the undo stack to be cleared.


DANG!

Anyway you know to create a drawing from inputs that dont cause this to happen?
What if I just reference the inputs we need to do the drawing to another sheet, and then use those for the drawing, that should do it correct?
 
Upvote 0

Forum statistics

Threads
1,224,811
Messages
6,181,080
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top