+ Reply to Thread
Results 1 to 4 of 4

Simple object required error in loop

  1. #1
    Registered User
    Join Date
    09-10-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    13

    Simple object required error in loop

    Hi all,

    I wrote this simple loop:
    Please Login or Register  to view this content.
    My Loop Until x2="" is receiving an 'object required' runtime error of 424...what am I doing wrong?

    Thank you for your help!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Simple object required error in loop

    If x1 = x2 you are deleting x2.

    So there's no object to use here.
    Please Login or Register  to view this content.
    If you want to remove duplicates in Excel 2010 you can use Data>Remove duplicates.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    09-10-2012
    Location
    NY, NY
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Simple object required error in loop

    Found my answer...simply restating my x2 in my if clause--that way I can automate the remove duplicates funtion, which was my goal.
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Simple object required error in loop

    If you want to automate the remove duplicates function.
    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)

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