![]() |
Locating 1st blank cell in named range
Try: Range("BankAccounts").End(xldown).Offset(1, 0).Select
Range("BankAccounts").End(xlup).Offset(1, 0).Select gives me cell A2 Regards Trevor "BOBODD" wrote in message ... 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? |
Locating 1st blank cell in named range
Assuming that A12:A52 has data
Range("BankAccounts").end(xldown).Offset(1, 0).Select If not cells(Range("BankAccounts").rows.count+Range("Bank Accounts").row-1,Range("BankAccounts").Column).offset(1,0).select -- --- HTH Bob (change the xxxx to gmail if mailing direct) "Trevor Shuttleworth" wrote in message ... Try: Range("BankAccounts").End(xldown).Offset(1, 0).Select Range("BankAccounts").End(xlup).Offset(1, 0).Select gives me cell A2 Regards Trevor "BOBODD" wrote in message ... 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 10:45 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com