+ Reply to Thread
Results 1 to 6 of 6

Control+Z and Y stop working when using other Macro or VBA codes

  1. #1
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,752

    Control+Z and Y stop working when using other Macro or VBA codes

    Hello

    Why the Ctrl+Z and Ctrl+Y stop working everytime using the macro button in my worksheet.

    Is there anyway to fix this issue?

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,964

    Re: Control+Z and Y stop working when using other Macro or VBA codes

    When you run a macro, the Undo Stack is cleared. Consequently, there is nothing to Undo and Ctrl-Z "appears" to do nothing . . . because there is nothing for it to undo.

    This is by design. A macro could carry out hundreds, if not thousands of actions making complex changes to cells, ranges, sheets, workbooks, whatever. It would be impossible to undo all but the simplest of macros.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,752

    Re: Control+Z and Y stop working when using other Macro or VBA codes

    Hi

    Ok. So is there any other way to maybe "reset" the macro so that the Undo be able to work?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,964

    Re: Control+Z and Y stop working when using other Macro or VBA codes

    Short story: no. Long story: no, see explanation in post #2.

  5. #5
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,752

    Re: Control+Z and Y stop working when using other Macro or VBA codes

    : o) Ok. Thank you TMS

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,964

    Re: Control+Z and Y stop working when using other Macro or VBA codes

    You're welcome.

    Sorry, I couldn't give you the answer you wanted to hear.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] How to stop running "ThisWorkbook" codes when opening Excel file by macro
    By lukelucky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2015, 12:15 PM
  2. Excel 2007 - VBA Macro Buttons Stop Working
    By mab in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-10-2014, 03:30 PM
  3. Stop a macro working if the activecell.row is less than a certain number
    By bottledbanks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2014, 02:28 PM
  4. Converting workbook with Macro to a template causes the Macro to stop working
    By Skeeta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-20-2012, 02:00 PM
  5. Stop Macro from working...
    By ZarrinPour in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2009, 03:38 AM
  6. Shared Workbook caused Macro to stop working
    By Cresh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2009, 03:15 PM
  7. Macro stop working and create errors
    By ephendi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2008, 06:16 PM

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