+ Reply to Thread
Results 1 to 3 of 3

Add another condition to code

  1. #1
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299

    Add another condition to code

    I am tweaking a macro. I need to add a condition to it. I only need the Else part to run if Col O ="P" and Col L = 1. Right now the first part runs when col O = "C" and Col L = 1 then the else part runs on everything else. If the rows of data don't fit into these 2 groups I don't need anything done to them.
    What do I need to do?
    Thank you for your time and help.

    Here is code now.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Try adding the red code below:
    Please Login or Register  to view this content.
    HTH

    Jason

  3. #3
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299
    I added the code but when I tested it, it doesn't stop running. Seems to be staying in this endless loop.
    Any ideas??
    Here is entire code below. With your updated added. Note: When I hit ctrl+alt+esc to interrupt code and choose to debug, it highlights the elseif statement?

    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