Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default how can I find last populated cell in a row (or column)

Assuming you don't have any null rows in a cell or column and you know
the starting cell, you can use:

Selection.End(xlToRight).Select 'For Columns
Selection.End(xlDown).Select 'For Rows
Cells(65536, "A").End(xlUp).Row 'Used if there are null rows and you
need to find the absolute last cell

Where Selection is your starting cell.

HTH

"alekm" wrote in message ...
Hi,
how can I find last populated (not null) cell in a row (or column)

thanx

alekm

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
how can I find last populated cell in a row (or column) gigglefritz Excel Programming 1 May 17th 04 04:40 PM
how can I find last populated cell in a row (or column) Frank Kabel Excel Programming 2 May 17th 04 04:32 PM
how can I find last populated cell in a row (or column) gigglefritz Excel Programming 0 May 17th 04 04:20 PM
how can I find last populated cell in a row (or column) gigglefritz Excel Programming 0 May 17th 04 04:20 PM
how can I find last populated cell in a row (or column) gigglefritz Excel Programming 0 May 17th 04 04:20 PM


All times are GMT +1. The time now is 04:19 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"