Find first blank cell that LOOKS empty in a column

bat18

Board Regular
Joined
Mar 29, 2010
Messages
89
I am trying to find the first blank cell in column A, I have used the code

Range("A1").End(xlDown).Offset(1, 0).Select

The problem thatg is occuring is thatg it is finding cell A501 every time, this is becuase I used to have formula all the way down to cell A500 before copying the column and pasting simply the values over it.

I now need to find the first blank cell in this column but it shoots me down to 501 every time, any ideas on how to find the first cell that looks blank??

Cheers
 
Try

Code:
Columns(1).Find("*", SearchDirection:=xlPrevious, SearchOrder:=xlByRows, LookIn:=xlValues).Offset(1).Select

although you should not need to select that cell in order to work with it.
 
Upvote 0
Also, you can force excel not to read those cells as 'occupied' with:

Code:
[COLOR="Blue"]On[/COLOR] [COLOR="Blue"]Error[/COLOR] [COLOR="Blue"]Resume[/COLOR] [COLOR="Blue"]Next[/COLOR]
    Columns(1).TextToColumns , DataType:=xlDelimited
[COLOR="Blue"]On[/COLOR] [COLOR="Blue"]Error[/COLOR] [COLOR="Blue"]GoTo[/COLOR] 0
 
Upvote 0

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