+ Reply to Thread
Results 1 to 4 of 4

runtime error '1004' application-defined or object-defined error

  1. #1
    Registered User
    Join Date
    12-05-2014
    Location
    Shropshire, England
    MS-Off Ver
    2007
    Posts
    8

    runtime error '1004' application-defined or object-defined error

    Hi,

    I'm trying to use this code in a vba module:

    Please Login or Register  to view this content.
    However, when i run it i get the error "runtime error '1004' application-defined or object-defined error". Can anyone help me with what's going wrong here please?

    thanks in advance!

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

    Re: runtime error '1004' application-defined or object-defined error

    Personally, I find it easier to use CHR(34) (The ASCII value for ") rather than trying to double up, or even treble up, on " characters...
    Please Login or Register  to view this content.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,247

    Re: runtime error '1004' application-defined or object-defined error

    You forgot to double up some quotes:
    Please Login or Register  to view this content.
    should be:
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    12-05-2014
    Location
    Shropshire, England
    MS-Off Ver
    2007
    Posts
    8

    Re: runtime error '1004' application-defined or object-defined error

    Thanks Cytop, that worked great!

    romperstomper - as for the lack of double quotes on the A1 cell, I was finding that it wasn't detecting blank cells with two sets of quotes, but it did with just the one set of quotes. That was when i was testing the formula manually in the worksheet though. I'm not sure why that was, but it wasn't detecting the condition as true when it was. The original formula had two sets of double quotes, but didn't seem to be working.

+ 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. Replies: 0
    Last Post: 05-14-2012, 11:59 PM
  2. Runtime error '1004' Application-defined or object-defined error Comment
    By Willer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-17-2011, 03:02 PM
  3. Runtime error 1004- application defined or object defined error
    By Novice in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-06-2006, 07:10 PM
  4. [SOLVED] RE: Runtime error 1004- application defined or object defined erro
    By Novice in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2006, 05:40 PM
  5. RE: Runtime error 1004- application defined or object defined erro
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-06-2006, 05:35 PM

Tags for this Thread

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