+ Reply to Thread
Results 1 to 13 of 13

Run-time error '1004' - Application-defined or object-defined error

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    365
    Posts
    242

    Question Run-time error '1004' - Application-defined or object-defined error

    I'm getting this error message. I've commented out where it breaks. Is it possibly too long for one line? Even if that is not the issue, how could I make it 2 lines? Any help is appreciated.

    Please Login or Register  to view this content.

  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
    48,516

    Re: Run-time error '1004' - Application-defined or object-defined error

    The easy option to test that theory is to put a short formula in the cell. If that works, there's something it doesn't like about the formula, possibly the length.

    There are 879 characters ... not sure what that will boil down to as a formula but it looks a bit excessive.

    You don't need to select the cells to put formulae in them. For example:

    Please Login or Register  to view this content.

    could be:

    Please Login or Register  to view this content.

    Regards

  3. #3
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    365
    Posts
    242

    Re: Run-time error '1004' - Application-defined or object-defined error

    I'll give that a try.

    I did know about your other suggestion. I just haven't had a chance to change that yet.

    Thanks.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Run-time error '1004' - Application-defined or object-defined error

    You could shorten it a lot with a lookup range, or you can use a shorter form of OR:
    Please Login or Register  to view this content.
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    365
    Posts
    242

    Re: Run-time error '1004' - Application-defined or object-defined error

    Thx. I incorporated the OR to shorten it. I still get the error though, so now I'm back to having no clue what is causing this since it's not the length.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Run-time error '1004' - Application-defined or object-defined error

    If you are using 2003, then you have too many nested IFs in that formula. (it's fine in 2007 or later)

  7. #7
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    365
    Posts
    242

    Re: Run-time error '1004' - Application-defined or object-defined error

    Bummer. I'm in 2007.

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Run-time error '1004' - Application-defined or object-defined error

    Might want to change your profile then.
    It works OK for me in 2010 in a quick test.

  9. #9
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    365
    Posts
    242

    Re: Run-time error '1004' - Application-defined or object-defined error

    Haha, oh geez. Totally forgot about my profile. Thanks.

  10. #10
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    365
    Posts
    242

    Re: Run-time error '1004' - Application-defined or object-defined error

    You know, this particular file is running in 2003. So what can I do to modify it? Is converting the file my only option?

  11. #11
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Run-time error '1004' - Application-defined or object-defined error

    I'd use a lookup table instead - that would work in all versions.

  12. #12
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Lincoln, IL
    MS-Off Ver
    365
    Posts
    242

    Re: Run-time error '1004' - Application-defined or object-defined error

    Do you mean replacing the existing formula with a vlookup formula?

  13. #13
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,015

    Re: Run-time error '1004' - Application-defined or object-defined error

    Or something similar, yes.

+ 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