Hi There
This is a very easy question to answer. I really get confused about the following 3 lines of code. I have used all three but I still do not know what the difference is. Here they are:
1. If ActiveCell = "" Then
Code goes here
Loop Until ActiveCell = ""
2. If IsBlank(ActiveCell) Then
Code goes here
Loop Until IsBlank(ActiveCell
3. If ActiveCell = Blank Then
Code goes here
Loop Until activeCell = Blank
1. I believe that the first code stops at a cell that is actually blank or appears blank but might have a formula in it. Is this correct?
2. The second code stops at a cell that is actually blank but does not stop at a cell that appears blank but has a formula in it. Is this correct?
3 I'm not sure about the third line of code.
Can someone out there tell me if I'm right on the first 2 codes and if not explain them better to me. Also tell me what the third code does. Is it the same as the first code but written differently?
This is a very easy question to answer. I really get confused about the following 3 lines of code. I have used all three but I still do not know what the difference is. Here they are:
1. If ActiveCell = "" Then
Code goes here
Loop Until ActiveCell = ""
2. If IsBlank(ActiveCell) Then
Code goes here
Loop Until IsBlank(ActiveCell
3. If ActiveCell = Blank Then
Code goes here
Loop Until activeCell = Blank
1. I believe that the first code stops at a cell that is actually blank or appears blank but might have a formula in it. Is this correct?
2. The second code stops at a cell that is actually blank but does not stop at a cell that appears blank but has a formula in it. Is this correct?
3 I'm not sure about the third line of code.
Can someone out there tell me if I'm right on the first 2 codes and if not explain them better to me. Also tell me what the third code does. Is it the same as the first code but written differently?