+ Reply to Thread
Results 1 to 3 of 3

Code is stopping undo

  1. #1
    Registered User
    Join Date
    01-18-2011
    Location
    Long Island, NY
    MS-Off Ver
    Excel 2010
    Posts
    23

    Code is stopping undo

    Hi guys,
    can anyone help with this problem.
    I have this bit of code to zoom when a cell is selected.
    But the problem is that is stops any ability to be able to undo actions from that particular sheet.
    Heres the code..hopefully its just a bit of tweaking.
    Thanks in advance
    Neil

    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    If Target.Address = "$A$4" Then
    ActiveWindow.Zoom = 120
    Else
    ActiveWindow.Zoom = 56

    End If
    End Sub

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,321

    Re: Code is stopping undo

    Hi NeilIE,

    I wish it was just a little tweak. Read http://www.jkp-ads.com/Articles/UndoWithVBA00.asp
    If you look at the conclusion on the above page it points to code that will Undo.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Code is stopping undo

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1