Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default 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?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,726
Default 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?





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
Checking for non-blank cells in named range Barb Reinhardt Excel Programming 2 October 13th 06 06:34 PM
Find first blank cell in single column named range tig Excel Programming 9 February 9th 06 05:39 PM
How to detect when a named cell (range) is Blank in VBA? Richard[_34_] Excel Programming 3 January 26th 06 05:27 PM
Locating first blank cell Mike W New Users to Excel 3 August 25th 05 09:02 PM


All times are GMT +1. The time now is 02:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"