Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default Count from A5 down to last used row - Not up

Hi all,

Is it possible to count the used rows from A5 down to the last used row ?

As i have data further down in column A, so cannot count up.
--
Les
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Count from A5 down to last used row - Not up

Use xlDown instead of xlUp...

dim rng as range

set rng = range(range("a5"), range("A5").end(xlDown))
msgbox rng.count
--
HTH...

Jim Thomlinson


"Les" wrote:

Hi all,

Is it possible to count the used rows from A5 down to the last used row ?

As i have data further down in column A, so cannot count up.
--
Les

  #3   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default Count from A5 down to last used row - Not up

Thanks Jim, much appreciated

--
Les


"Jim Thomlinson" wrote:

Use xlDown instead of xlUp...

dim rng as range

set rng = range(range("a5"), range("A5").end(xlDown))
msgbox rng.count
--
HTH...

Jim Thomlinson


"Les" wrote:

Hi all,

Is it possible to count the used rows from A5 down to the last used row ?

As i have data further down in column A, so cannot count up.
--
Les

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
Count Employee Work Time - Don't Count Duplicates J Excel Worksheet Functions 3 May 1st 07 10:47 PM
Count Employee Work Time - Don't Double-count Overlapping Apts. J Excel Worksheet Functions 0 April 27th 07 05:52 AM
Excel 2000, count, sort a list & count totals? sunslight Excel Worksheet Functions 1 April 9th 07 05:46 PM
Excel Count characters in a textbox to display character count? [email protected] Excel Programming 1 February 8th 07 06:31 AM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


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