ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Locating 1st blank cell in named range (https://www.excelbanter.com/excel-programming/379373-re-locating-1st-blank-cell-named-range.html)

PapaDos

Locating 1st blank cell in named range
 

Range("BankAccounts").specialcells(xlCellTypeBlank s).Cells(1).select

NOTE:
This will generate a runtime error if there is no blank cells in the range,
so you need to trap it with an On Error statement...

--
Regards,
Luc.

"Festina Lente"


"BOBODD" wrote:

I have a named range "BankAccounts" which is A12:A52. This range fills from
A12 down. I'm using

Range("BankAccounts").End(xlUp).Offset(1, 0).Select

To try to find the first blank cell, but this is returning A1. What have I
missed?



All times are GMT +1. The time now is 03:36 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com