+ Reply to Thread
Results 1 to 3 of 3

Run-time error '424' (object required)

  1. #1
    Registered User
    Join Date
    02-08-2013
    Location
    São Paulo, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Run-time error '424' (object required)

    Hello

    The 424 error occurs when an object is necessary.
    I’m having trouble to reference an instruction to a property of an object.
    The object in question was created in a form and the instruction that needs it belongs to a class of functions.
    I tried starting and restarting and create a new object in the function, but I got the error 91 (Object variable or with block variable not set).

    Question: How do I refer the instruction to the object property already created?
    Data:
    The instruction belongs to Excel.Application.

    I’m using VB6.

    this snippet of code belongs to the form:
    -----------------------------------------
    Please Login or Register  to view this content.
    ------------------------------------------------------------
    this snippet of code function:
    -----------------------------------------------------------
    Please Login or Register  to view this content.
    ----------------------------------------------------------
    the instruction Selection.Copy that referenced to the object xl
    Last edited by arlu1201; 02-14-2013 at 08:49 AM.

  2. #2
    Forum Contributor
    Join Date
    01-03-2013
    Location
    Aberdeen, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Run-time error '424' (object required)

    I think the problem may be with this line:
    Please Login or Register  to view this content.
    You should provide full path to the file not only the filename. But this is only my suspicion.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Run-time error '424' (object required)

    jovir,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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