Talk About Network

Google





Mac > Excel Office for Mac > VBA cell range ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5687 of 6965
Post > Topic >>

VBA cell range selection query.

by Justin C <justin.0805@[EMAIL PROTECTED] > Jun 3, 2008 at 12:34 PM

Excel 2004

I have a spreadsheet 5500 rows by 11 columns. It's not a static size, it
grows a little most days. I need to select a range, A1 to the very last
used cell in J.

Now, in VBA I can get to the last cell in J by:
Range("J5").End(xlDown)

But I don't know how to put what that cell is into a variable so I can
use it. I can get the contents of the cell, but that's not what I want.

I looked at setting my range using:
UsedRange.Rows.Count

but there are some blank rows after the end of the data that are also
selected (I don't know how these come about, there's something the user
is doing that introduces these from time to time, but I can't figure out
what, so there is nothing I can do about them).

How do I get VBA to tell me which cell is active? I don't mind if it's
Cell(5500,10) format or J5500, I'm sure I can figure things from there.

Thank you for any help you can give with this.

	Justin.

-- 
Justin C, by the sea.
 




 3 Posts in Topic:
VBA cell range selection query.
Justin C <justin.0805@  2008-06-03 12:34:16 
Re: VBA cell range selection query.
Bob Greenblatt <bob@[E  2008-06-03 10:43:37 
Re: VBA cell range selection query.
Justin C <justin.0805@  2008-06-03 15:00:07 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 1:54:59 PST 2009.