+ Reply to Thread
Results 1 to 7 of 7

Runtime error 1004 & runtime error 424

  1. #1
    Registered User
    Join Date
    11-17-2017
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    14

    Runtime error 1004 & runtime error 424

    Hi I am getting this error in this code which is part of a larger macro. It always stops here giving the runtime error 1004 or 424 message. The macro sometimes gets through the whole sub routine and other times it gives this error. Thanks for your help.

    Please Login or Register  to view this content.
    End Sub
    Please Login or Register  to view this content.

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

    Re: Runtime error 1004 & runtime error 424

    It stops where? It would be easier to test the code if you supplied a workbook sample

  3. #3
    Registered User
    Join Date
    11-17-2017
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    14

    Re: Runtime error 1004 & runtime error 424

    The workbook is confidential it must be deleted after. It stops at

    Range(Selection, Selection.End(xlToRight)).Select

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Runtime error 1004 & runtime error 424

    Perhaps this instead
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Registered User
    Join Date
    11-17-2017
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    14

    Re: Runtime error 1004 & runtime error 424

    Thank you for your response.

    There is a compile error at .usedrange. Also did you include the paste values in the code?

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Runtime error 1004 & runtime error 424

    That is what this line does
    Please Login or Register  to view this content.
    The syntax of that code is fine- can you copy and paste here the exact code you have now?

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

    Re: Runtime error 1004 & runtime error 424

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

+ 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. Runtime error '1004': Paste special method of range class error.
    By Daryl Zer0 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-05-2014, 01:44 AM
  2. [SOLVED] VBA Error: Runtime Error 1004: AutoFilter method of Range class failed
    By jl22stac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 07:27 PM
  3. [SOLVED] Range error in code, runs alone but not inside my full program, giving runtime error 1004
    By charizzardd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-23-2012, 03:34 PM
  4. runtime error 1004 general odbc error
    By habj04ae in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2012, 05:59 AM
  5. Proper error catching runtime error 1004
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-14-2010, 01:07 AM
  6. Runtime error '1004' General ODBC error
    By star_lucas in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-03-2008, 05:10 PM
  7. [SOLVED] Excel 2003 Macro Error - Runtime error 1004
    By Cow in forum Excel General
    Replies: 2
    Last Post: 06-07-2005, 09:05 AM

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