+ Reply to Thread
Results 1 to 8 of 8

Delete rows with #N/A values on my sheet using VBA code

  1. #1
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Question Delete rows with #N/A values on my sheet using VBA code

    Iam new to VBA Excel!

    Problem- After i click my update button in my userform.My data is updated successfully but at the same time , i see some #NA for those,I did not entered any data. i don't want to see any #NA on my sheet . what i should do?

    Note : I used "For With loop" in my update button...the code is below .pls chk it!!

    Please Login or Register  to view this content.
    Last edited by joh46k; 04-03-2013 at 02:39 AM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Delete rows with #N/A values on my sheet

    use the iferror() statement for every entry

  3. #3
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Delete rows with #N/A values on my sheet

    How to do iferror() statment ?

    i donot where to put?

    Please some one help me on my post #1
    Last edited by joh46k; 04-03-2013 at 02:03 AM.

  4. #4
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Delete rows with #N/A values on my sheet using VBA code

    Bump no response
    Last edited by joh46k; 04-03-2013 at 05:41 AM.

  5. #5
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Delete rows with #N/A values on my sheet using VBA code

    OK vlookup will return a #N/A if the seeked string is not found so
    if you rewrite iferror(Vlookup(... ),"") you will get a blank cell and not a "#N/A"

  6. #6
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Delete rows with #N/A values on my sheet using VBA code

    @rcm: ok , if that is the solution for my code, then my question is how to write a iferror() statement code ?

    Please Reply Thank you!!
    Last edited by joh46k; 04-03-2013 at 10:08 PM.

  7. #7
    Forum Contributor
    Join Date
    03-28-2013
    Location
    singapore
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Delete rows with #N/A values on my sheet using VBA code

    It's ok guys!! i solved it. Thank u for ur Precious time to reply me back .

  8. #8
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: Delete rows with #N/A values on my sheet using VBA code

    Hi joh46k,

    Try this single line of code for the Product_Hirechy macro...

    Please Login or Register  to view this content.
    ...and this single line for the Flow_Description macro:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

+ 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