PC Review


Reply
Thread Tools Rate Thread

Cell Address, Last Non Empty Cell

 
 
=?Utf-8?B?Rmlsbw==?=
Guest
Posts: n/a
 
      31st Mar 2007
How can I retrieve the address of the last non empty cell in column A,
starting from the bottom of column A?

Thank you!
 
Reply With Quote
 
 
 
 
Fred Smith
Guest
Posts: n/a
 
      31st Mar 2007

Range("A" & rows.count).end(xlup)

--
Regards,
Fred


"Filo" <(E-Mail Removed)> wrote in message
news:82B3D51C-0962-4B93-9FA0-(E-Mail Removed)...
> How can I retrieve the address of the last non empty cell in column A,
> starting from the bottom of column A?
>
> Thank you!



 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      31st Mar 2007
Sub test()
Set rng1 = ActiveSheet.Cells(Rows.Count, 1).End(xlUp)
MsgBox rng1.Address
End Sub


Gord Dibben MS Excel MVP

On Sat, 31 Mar 2007 13:14:02 -0700, Filo <(E-Mail Removed)> wrote:

>How can I retrieve the address of the last non empty cell in column A,
>starting from the bottom of column A?
>
>Thank you!


 
Reply With Quote
 
David McRitchie
Guest
Posts: n/a
 
      31st Mar 2007
Hi Filo,

Sub GotoBottomOfCurrentColumn()
'Tom Ogilvy 2000-06-26
Cells(Rows.Count, ActiveCell.Column).End(xlUp).Select
End Sub

For a toolbar button to go with the above see
http://www.mvps.org/dmcritchie/excel...rs.htm#xl2ktbm

The cell address in column A would be
MsgBox Cells(Rows.Count, 1).End(xlUp).Address(0, 0)


---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Filo" <(E-Mail Removed)> wrote in message news:82B3D51C-0962-4B93-9FA0-(E-Mail Removed)...
> How can I retrieve the address of the last non empty cell in column A,
> starting from the bottom of column A?
>
> Thank you!




 
Reply With Quote
 
=?Utf-8?B?Rmlsbw==?=
Guest
Posts: n/a
 
      31st Mar 2007
Thank you All

"Filo" wrote:

> How can I retrieve the address of the last non empty cell in column A,
> starting from the bottom of column A?
>
> Thank you!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return cell address of a cell based on contents of cell. Danny Microsoft Excel Worksheet Functions 4 15th Nov 2008 03:11 AM
find cell address of first non empty cell in a row =?Utf-8?B?QmlsbHlSb2dlcnM=?= Microsoft Excel Programming 4 8th Sep 2007 03:35 AM
format a cell with a formula so an empty reference cell shows blan =?Utf-8?B?TTI=?= Microsoft Excel Misc 3 7th Nov 2006 10:42 PM
Re: VBA to copy to empty cell directly below a cell when analogous cells in different column have same value as each other? Steven Rosenberg Microsoft Excel Programming 0 5th Aug 2003 06:10 AM
VBA to copy to empty cell directly below a cell when analogous cells in different column have same value as each other? SROSENYC Microsoft Excel Programming 1 5th Aug 2003 04:34 AM


Features
 

Advertising
 

Newsgroups
 


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