+ Reply to Thread
Results 1 to 2 of 2

For Each cell in range and If statement. Prevent code moving on until If met

  1. #1
    Registered User
    Join Date
    04-22-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    59

    For Each cell in range and If statement. Prevent code moving on until If met

    Hi

    I have some modified code to check User entry into a varying number of cells and call up a MsgBox if any are empty.

    I must have the placement of the what to do line if condition not met in the wrong place as whilst the code catches the missing entries once warned it moves and calls the next sub routine.

    As you will see I want the code to stop and return user to P12 which is the general area of where these cells are located.

    Hopefully this is a simple fix and just me being dense.

    Many thanks

    Please Login or Register  to view this content.
    Last edited by coasterman; 01-29-2012 at 11:28 AM.

  2. #2
    Registered User
    Join Date
    04-22-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: For Each cell in range and If statement. Prevent code moving on until If met

    I was being dense, this was the wrong bit of code and does work. Apologies to any that have viewed

+ 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