+ Reply to Thread
Results 1 to 7 of 7

Application-defined or object-defined error

  1. #1
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Application-defined or object-defined error

    Hi,

    I'm getting an error 'Application-defined or object-defined error' for the below code.
    When debugging, it is goes on the highlighted line, I've used the below code on my other projects and it run okay but I'm now encountering the error now.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Application-defined or object-defined error

    and what is n while macro stops?

    Check it with Locals window or add
    Please Login or Register  to view this content.
    before
    Please Login or Register  to view this content.
    I suspect it could be 0 and then obviously the line above generates an error.
    Best Regards,

    Kaper

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Application-defined or object-defined error

    I'm not seeing a highlighted line...????

    nevermind....I was looking for a little more highlighting.....<insert sheepish grin>
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Application-defined or object-defined error

    Siobeh,
    Since this is my code, I will adjust it if you could attach your book.

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Application-defined or object-defined error

    Use this lines

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    04-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    227

    Re: Application-defined or object-defined error

    Hi AB33,

    I've pattern the sequence of the macro from my other project on my current project. It's now resolved.

    **Off-topic**
    Question:

    I have two Columns ( A & B) , and I need to mimic the value of Column A to B. I just want to set the value.
    The logic is seems like the below code, but i want the rows.
    Please Login or Register  to view this content.
    Is this correct?
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Application-defined or object-defined error

    Please Login or Register  to view this content.

+ 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. [SOLVED] application-defined/object-defined error 1004 when trying to read from or write to cells
    By florin_excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2012, 08:38 AM
  2. Replies: 2
    Last Post: 09-12-2012, 01:01 PM
  3. Application Defined or Object Defined Error, Command Button and Vlookup Function
    By stevedomer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-14-2011, 11:20 PM
  4. Replies: 3
    Last Post: 07-24-2006, 08:20 PM
  5. copy method failed:application-defined or object-defined error'
    By syam1919 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2005, 05: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