Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Cell Address, Last Non Empty Cell

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

Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 623
Default Cell Address, Last Non Empty Cell


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

--
Regards,
Fred


"Filo" wrote in message
...
How can I retrieve the address of the last non empty cell in column A,
starting from the bottom of column A?

Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Cell Address, Last Non Empty Cell

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 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!


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 903
Default Cell Address, Last Non Empty Cell

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" wrote in message ...
How can I retrieve the address of the last non empty cell in column A,
starting from the bottom of column A?

Thank you!




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Cell Address, Last Non Empty Cell

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
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
Return cell address of a cell based on contents of cell. Danny Excel Worksheet Functions 4 November 15th 08 03:11 AM
format a cell with a formula so an empty reference cell shows blan M2 Excel Discussion (Misc queries) 3 November 7th 06 10:42 PM
Finding next empty empty cell in a range of columns UncleBun Excel Programming 1 January 13th 06 11:22 PM
VBA to copy to empty cell directly below a cell when analogous cells in different column have same value as each other? Steven Rosenberg Excel Programming 0 August 5th 03 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 Excel Programming 1 August 5th 03 04:34 AM


All times are GMT +1. The time now is 05:26 PM.

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"