+ Reply to Thread
Results 1 to 5 of 5

Getting run-time error 1004 method 'undo' of object application failed

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Getting run-time error 1004 method 'undo' of object application failed

    Hi friends,

    If I delete the value in column ‘B’ then I get a warning message ‘do you want to delete the value? Yes/no.

    If I click on yes then no problem but if I click on ‘no’ then I’m getting run-time error 1004 method ‘undo’ of object application failed.
    Please Login or Register  to view this content.
    Any help will be highly appreciated.

    Thanking you,
    Sincerely,

    mso3

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Getting run-time error 1004 method 'undo' of object application failed

    From reading, there does not seem to be anything wrong with the code - and it runs just fine.

  3. #3
    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,447

    Re: Getting run-time error 1004 method 'undo' of object application failed

    You are making changes to a range of cells within a Change Event handler. You need to switch off Event handling before making changes and on again afterwards.
    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


  4. #4
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: Getting run-time error 1004 method 'undo' of object application failed

    Hi Cytop,
    Thank you. Then why the error is?

    Hi TMS,
    Thank you. I added
    Please Login or Register  to view this content.
    but same error. Where to insert it to avoid error?

    Please send me the amended code.

  5. #5
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Getting run-time error 1004 method 'undo' of object application failed

    Please send me the amended code.
    Better you upload a sample copy of your workbook that displays the issue.

+ 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] Getting run-time error 1004: method 'undo' of object '_application' failed
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2016, 09:01 AM
  2. [SOLVED] getting run time error 1004: method activeprinterof object application failed.
    By mso3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2015, 03:12 PM
  3. Run time error '1004': Method 'Undo' of Object'_Application' failed
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2014, 02:21 AM
  4. Run-time error '1004': Method 'Sheets' of object '_Global' failed
    By dancko in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-03-2014, 04:42 PM
  5. vba code returning Run Time Error 1004 method 'undo' of object
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-24-2012, 08:17 PM
  6. [SOLVED] Run-time error '1004': Method 'Cells' of object _Global failed
    By Fran D in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2006, 11:50 AM
  7. [SOLVED] Run-time error '1004': Method 'Range' of object '_Global' failed
    By Neild in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-12-2006, 07:50 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