+ Reply to Thread
Results 1 to 4 of 4

Deleting Integers

  1. #1
    Registered User
    Join Date
    07-29-2008
    Location
    home
    Posts
    2

    Deleting Integers

    Hi,

    I'm quite new to VB, I did a bit a while ago and need to use it again.

    I have a vlookup that looks up for duplicates so it either returns a #n/a or a number. From this list i want it to delete any number that has been returned, leaving all the #n/a's (as they aren't duplicates)

    I tried a basic For Loop but it removed everything that wasn't a negative integer

    Please Login or Register  to view this content.
    And i have found it generally crashes when it comes to #n/a (the hash maybe?)

    I have played around with no luck so was wondering if anyone could help. My attempt being(the gist of it): IF #n/a THEN leave, ELSE delete.

    Many Thanks

    Relic

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Try

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650
    Hi Or perhaps
    Please Login or Register  to view this content.
    Mick

  4. #4
    Registered User
    Join Date
    07-29-2008
    Location
    home
    Posts
    2
    Cheers Roy that works perfectly.

+ 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