#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default VBA help Range Count

I have a range that keeps changing and I need to count how many are in
this range. I copy and past information from one workbook to
another. I delete rows that are not needed and then I need a count of
how many rows are left. Any help would be greatly appreciated.

Thanks,
Jay
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default VBA help Range Count

On Nov 27, 9:12 am, jlclyde wrote:
I have a range that keeps changing and I need to count how many are in
this range. I copy and past information from one workbook to
another. I delete rows that are not needed and then I need a count of
how many rows are left. Any help would be greatly appreciated.

Thanks,
Jay


Nevermind I have made a workaround. I am just telling my variable to
always equal 20. It will overwrite itself the next time the macro is
ran.
Jay
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default VBA help Range Count

And you want to count from where____? to where________?
1st row to last row in column?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"jlclyde" wrote in message
...
I have a range that keeps changing and I need to count how many are in
this range. I copy and past information from one workbook to
another. I delete rows that are not needed and then I need a count of
how many rows are left. Any help would be greatly appreciated.

Thanks,
Jay


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default VBA help Range Count

Assuning that the range is allocatedc to the object rng, it is simply

rng.Rows.Count

If you need to find where the end is

range(range("A1"),Range("A1").End(xlDown)).Rows.Co unt



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"jlclyde" wrote in message
...
I have a range that keeps changing and I need to count how many are in
this range. I copy and past information from one workbook to
another. I delete rows that are not needed and then I need a count of
how many rows are left. Any help would be greatly appreciated.

Thanks,
Jay



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 410
Default VBA help Range Count

On Nov 27, 9:26 am, "Don Guillett" wrote:
And you want to count from where____? to where________?
1st row to last row in column?

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"jlclyde" wrote in message

...



I have a range that keeps changing and I need to count how many are in
this range. I copy and past information from one workbook to
another. I delete rows that are not needed and then I need a count of
how many rows are left. Any help would be greatly appreciated.


Thanks,
Jay- Hide quoted text -


- Show quoted text -


I got it thanks though. I used a set number. It will never be more
then 20 so i set it at 20. It will copy over the unneeded rows
everytime the macro is run.
Jay
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
Using a count in a range name Steve Excel Discussion (Misc queries) 1 September 18th 07 05:20 PM
Sum or Count using set range Rayasiom Excel Worksheet Functions 3 April 26th 07 02:26 PM
how do i Count with in the cell range value is 5 and <=15 sanju Excel Worksheet Functions 1 March 1st 06 02:46 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM


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