+ Reply to Thread
Results 1 to 3 of 3

Run-Time Error 1004

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    85

    Run-Time Error 1004

    Hello all,

    Please see my code below. It was working fine for awhile, but is now bugging out. Originally, it only bugged out at the highlighted and underlined code in case 13 whenever the first letter of the column numbers switched (e.g. AZ to BA), but now it is bugging out in every column. The error I'm getting is run-time error 1004. Any idea how to fix this?

    Additionally, now the sub is inserting a "\" into the countif function, so you get: Countif(G\15:g\4,"<"&0). Any idea what it's adding the "\"s? Any ideas how to fix?

    I deleted Cases 2 through 8 so that it would fit.

    Thanks!
    Mattman123

    Please Login or Register  to view this content.
    Last edited by mattman123; 07-21-2014 at 01:25 PM.

  2. #2
    Registered User
    Join Date
    08-19-2012
    Location
    Denver
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: Run-Time Error 1004

    More specifically, it's an application-defined or object-defined error.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,751

    Re: Run-Time Error 1004

    Your 1004 is very difficult to diagnose without having your file. I would want to see the values of all those variables at the point where it stops. Can you attach it?

    By the way, there are bugs in converttoletter when converting 79, 80, 105, 106, 107, and many more.

    Try this. It lets Excel do all the work and has been thoroughly tested.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Addon error : Run-time error '1004': Method 'MacroOptions' of object '_Application' failed
    By jtcoleman in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 02-05-2014, 12:23 PM
  2. Replies: 4
    Last Post: 11-15-2013, 05:03 PM
  3. VBA Code...error = run time error 1004 autofilter method of range class failed
    By Dariusd7 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-15-2013, 04:49 PM
  4. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  5. Replies: 5
    Last Post: 08-10-2005, 05:05 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