+ Reply to Thread
Results 1 to 9 of 9

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

  1. #1
    Registered User
    Join Date
    10-28-2008
    Location
    Romania
    Posts
    3

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

    Hi All,

    This is my very first VBA project, and I'm a bit lost. I've got this run-time error:
    1004 - Application-defined or object-defined error.

    Could you please take a look into the program and suggest me where could the problem be?
    Please Login or Register  to view this content.
    Thank you so much:-)
    beacska
    Last edited by Leith Ross; 10-28-2008 at 08:27 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Welcome to the forum.

    What line generates the error?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Gotta go. Try this:
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-28-2008
    Location
    Romania
    Posts
    3
    This is working perfect. :-) Thank you soo much sgh

    But there is just one problem, I need to cutomise this for every different set of tables. For the one I'm working on now it should find 7 blank cells and also the rage to copy is different. I did it in this way, but now it gives me this error: "Subscript out of range"

    Please Login or Register  to view this content.
    What can be the problem?
    Thanks a lot
    Last edited by shg; 10-29-2008 at 09:13 AM. Reason: add code tags

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I've edited your post to add Code Tags. Please read the Forum Rules before posting again.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    What have you done to debug?

    What line in the code gives the error, when processing what cell?

  7. #7
    Registered User
    Join Date
    10-28-2008
    Location
    Romania
    Posts
    3
    I find out... it was a stupid mistake, that the name of the sheet didn't coincided with the name defined in the code.

    Thank you soooooo much for your help. :-)

    I have a lot of to learn to get a little bit used to VBA...

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    You're welcome. My compliments on taking the initiative to modify the code yourself.

  9. #9
    Registered User
    Join Date
    07-02-2008
    Location
    Fort Worth, TX
    Posts
    99
    Subscript out of range
    This typically means that whatever your trying to do in a specific location doesn't exist, ie: name of the sheet, cell range, workbook. I get this all the time, and almost always just a typo on my part, or forgetting to open a document I'm trying to edit.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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