+ Reply to Thread
Results 1 to 2 of 2

#REF! in while loop

  1. #1

    #REF! in while loop

    dear all

    i wrote a macro with a while clause, unfortunately there are also some
    rows which have #REF! and I want to delete them as well. How do I do
    it?

    last= 2011
    Do While IsNumeric(ActiveSheet.Cells(i, 1).Value) And
    ActiveSheet.Cells(i, 1).Value > last


    Dirk


  2. #2
    Tom Ogilvy
    Guest

    Re: #REF! in while loop

    if iserror(Activesheet.Cells(i,1).value) then
    ' cell contains an error value


    --
    Regards,
    Tom Ogilvy


    <[email protected]> wrote in message
    news:[email protected]...
    > dear all
    >
    > i wrote a macro with a while clause, unfortunately there are also some
    > rows which have #REF! and I want to delete them as well. How do I do
    > it?
    >
    > last= 2011
    > Do While IsNumeric(ActiveSheet.Cells(i, 1).Value) And
    > ActiveSheet.Cells(i, 1).Value > last
    >
    >
    > Dirk
    >




+ 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