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

Hi
for a column try something like
sub foo()
Dim Lastrow
LastRow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).row
msgbox lastrow
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


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

thanx

alekm

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default how can I find last populated cell in a row (or column)

Hey Frank! The guy asked for the cell, not the row!

-----Original Message-----
Hi
for a column try something like
sub foo()
Dim Lastrow
LastRow = ActiveSheet.Cells(Rows.Count, "A").End

(xlUp).row
msgbox lastrow
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


alekm wrote:
Hi,
how can I find last populated (not null) cell in a row

(or column)

thanx

alekm

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default how can I find last populated cell in a row (or column)

Hi
o.k. agreed. use
msgbox cells(lastrow,"A")

--
Regards
Frank Kabel
Frankfurt, Germany


gigglefritz wrote:
Hey Frank! The guy asked for the cell, not the row!

-----Original Message-----
Hi
for a column try something like
sub foo()
Dim Lastrow
LastRow = ActiveSheet.Cells(Rows.Count, "A").End (xlUp).row
msgbox lastrow
end sub

--
Regards
Frank Kabel
Frankfurt, Germany


alekm wrote:
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
find last populated cell in range of cells Maximus[_2_] Excel Worksheet Functions 6 July 22nd 09 04:31 PM
Find the first or last populated column in a range Commish Excel Worksheet Functions 6 May 14th 09 10:16 PM
Last populated cell in a column RedFive Excel Discussion (Misc queries) 1 October 3rd 08 09:01 PM
Last populated cell in a column RedFive Excel Discussion (Misc queries) 7 October 3rd 08 08:58 PM
Referencing last populated cell in a column flint Excel Worksheet Functions 2 April 28th 07 09:21 AM


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