LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 179
Default Is this really hard?

Diana

A user-defined function or a worksheet function. I don't know of any
worksheet functions that do that, but here's a userdefined function that
will

Function LastRow(sh As Worksheet) As Long

LastRow = sh.UsedRange(sh.UsedRange.Cells.Count).Row

End Function

If that doesn't seem to answer your question, then reply to this message
with more specifics and I will be happy to help.

--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.

"Diana" wrote in message
...
Hello everyone,

This is the third time I post this request. I don't seem
to get any relevant help.

I need a function that would let me know the number of
the last row that is populated with data.

For instance if my default range is A1:D2000 and my
populated Range is A1:D32, the function needs to return
32 as a result.

I appreciate your help
Diana



 
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
Too hard to do? LSSTOC Black Belt Charts and Charting in Excel 1 April 16th 10 11:27 PM
Maybe too hard to do? LSSTOC Black Belt Excel Worksheet Functions 2 April 16th 10 11:03 PM
PLS, I need help, it is hard Attie Excel Worksheet Functions 6 August 11th 07 10:27 AM
Hard One. Chris S. Excel Discussion (Misc queries) 1 August 23rd 05 10:32 PM
This is a hard one... goodfella Excel Discussion (Misc queries) 4 June 17th 05 06:31 PM


All times are GMT +1. The time now is 07:17 PM.

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

About Us

"It's about Microsoft Excel"