+ Reply to Thread
Results 1 to 3 of 3

syntax of IF NEXT CELL LOOP

  1. #1
    Forum Contributor
    Join Date
    10-31-2010
    Location
    london
    MS-Off Ver
    Excel 365
    Posts
    150

    syntax of IF NEXT CELL LOOP

    Can someone tell me where im going wrong with the below code, i tried it in two parts so adding the value of the formula works but when i add the if, the whole section of code doesnt seem to work, i know it must be syntax issue but dont know where??


    Please Login or Register  to view this content.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: syntax of IF NEXT CELL LOOP

    No sure what you mean when you say it doesn't appear to work. One thing that I did notice is that you are deleting cells in a range which is being used to drive a loop. It might be better to have a counter instead and work thought the cells in an upwards direction so that deleting does not affect any subsequent rows.
    Martin

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

    Re: syntax of IF NEXT CELL LOOP

    Why not try this?
    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