LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Using COUNT value as variable

Yes. I've declared x as an integer. I'm looking to use x as a variable, not
a range. I need x to be a number. I need to count the cells in the range
and that number needs to be x. Sorry i wasn't more specific

"Johnny" wrote:

Did you dimension x?


Sub Foo()
Dim x as Range

Set x = Range("RangeNameHere")

With x
'Do stuff
end With

Set x = Nothing
End Sub




 
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 number of dates in a row of cel before or after a variable d TBA Excel Worksheet Functions 5 April 22nd 09 03:08 AM
Count in a variable range Ron@Buy Excel Worksheet Functions 4 September 27th 07 08:24 AM
Count if multiple variable exist Stan Excel Discussion (Misc queries) 1 March 16th 07 03:30 PM
Multiple Variable Count problem Robbie_lambert Excel Worksheet Functions 1 May 5th 06 02:44 PM
variable row count 2 Bart Excel Programming 1 December 15th 04 10:19 AM


All times are GMT +1. The time now is 07:35 AM.

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"