Find first cell that displays nothing

kod2th3e

Board Regular
Joined
Apr 2, 2008
Messages
87
I have formulas in from cells B3 down through B1000 of a spreadsheet that will display "" (nothing) if they evaluate to false. There may be an instance where a particular cell within this column evaluates to false and I am trying to find and select the first cell that displays nothing using the following code:

Code:
Range("B3").End(xlDown).Offset(0, 0).Select

What ends up happening is cell B1001 gets selected even if say cell B651 is empty. I'm not sure what I'm doing wrong/what's missing so any all help anyone can provide would be much appreciated.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
This works...
Code:
Sub Foo()


'Range("B3").End(xlDown).Offset(0, 0).Select


Set Rng = Range("B3:B1000")
For Each C In Rng
    If C = "" Then
        C.Select
    End If


Next C
End Sub
 
Upvote 0
Code:
With Range("b3:b1000")
Set gcell = .Cells.Find("")
End With

this would find the first empty cell in your range
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top