Solved

Does the ActiveCell equal to one above it?

Posted on 2014-11-18
4
56 Views
Last Modified: 2014-11-18
How do I tell excel in an If statement.

If the ActiveCell and the one above me are the same, exit Sub?  I need an Exit point and not sure how to do this.
Please advise and thanks.
0
Comment
Question by:RWayneH
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40450654
If activecell.value= activecell.offset(-1,0).value  then exit sub
0
 
LVL 46

Expert Comment

by:Martin Liss
ID: 40450676
While the professor's post is what you asked for, maybe if you posted the code we could see if there is another way to do it?
0
 

Author Comment

by:RWayneH
ID: 40450701
Nope I am good.  Excel, there are a number of ways to do things.  Just needed to exit a Loop  Thanks.
0
 

Author Closing Comment

by:RWayneH
ID: 40450704
Thanks for the help.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Make a Cell act like a Date 7 39
Copy a range from 1..n excel sheets to one destination sheet 2 33
Select Next Route by Time 4 19
sumifs excel 2013 3 15
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question