PC Review


Reply
Thread Tools Rate Thread

A1:B(xlDown)?

 
 
Simon
Guest
Posts: n/a
 
      28th Jul 2008
Hi,

I use

Range("A1").Select
Range(Selection, Selection.End(xlDown)).Select

for column A, but how do I grab from A1 to the last record in row B in
one swoop?
 
Reply With Quote
 
 
 
 
Wigi
Guest
Posts: n/a
 
      28th Jul 2008
Range("A1:B" & Range("B1").End(xlDown).Row)



--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Simon" wrote:

> Hi,
>
> I use
>
> Range("A1").Select
> Range(Selection, Selection.End(xlDown)).Select
>
> for column A, but how do I grab from A1 to the last record in row B in
> one swoop?
>

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      28th Jul 2008
Range("A1").Resize(Range("A1").End(xlDown).Row).Select


--
HTH

Bob

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

"Simon" <(E-Mail Removed)> wrote in message
news:ca47a142-5c85-4fef-bb4e-(E-Mail Removed)...
> Hi,
>
> I use
>
> Range("A1").Select
> Range(Selection, Selection.End(xlDown)).Select
>
> for column A, but how do I grab from A1 to the last record in row B in
> one swoop?



 
Reply With Quote
 
JMay
Guest
Posts: n/a
 
      28th Jul 2008
Needed to use
Range("A1").Resize(Range("B1").End(xlDown).Row, 2).Select

"Bob Phillips" wrote:

> Range("A1").Resize(Range("A1").End(xlDown).Row).Select
>
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
> "Simon" <(E-Mail Removed)> wrote in message
> news:ca47a142-5c85-4fef-bb4e-(E-Mail Removed)...
> > Hi,
> >
> > I use
> >
> > Range("A1").Select
> > Range(Selection, Selection.End(xlDown)).Select
> >
> > for column A, but how do I grab from A1 to the last record in row B in
> > one swoop?

>
>
>

 
Reply With Quote
 
Simon
Guest
Posts: n/a
 
      29th Jul 2008
On Jul 28, 11:43*am, JMay <J...@discussions.microsoft.com> wrote:
> Needed to use
> Range("A1").Resize(Range("B1").End(xlDown).Row, 2).Select
>
>
>
> "Bob Phillips" wrote:
> > Range("A1").Resize(Range("A1").End(xlDown).Row).Select

>
> > --
> > HTH

>
> > Bob

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

>
> > "Simon" <simonlaven...@gmail.com> wrote in message
> >news:ca47a142-5c85-4fef-bb4e-(E-Mail Removed)...
> > > Hi,

>
> > > I use

>
> > > Range("A1").Select
> > > Range(Selection, Selection.End(xlDown)).Select

>
> > > for column A, but how do I grab from A1 to the last record in row B in
> > > one swoop?- Hide quoted text -

>
> - Show quoted text -


Yes, thansk the ,2) was requred, specifing the number of rows required.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
End(xlDown) Normek Microsoft Excel Programming 5 13th Jul 2009 10:46 AM
Re: End(xlDown) not working? Bernie Deitrick Microsoft Excel Misc 1 19th Jan 2007 12:40 AM
Using xlDown as a function? John Sutton Microsoft Excel Discussion 4 8th Feb 2006 01:38 PM
repeated end(xldown) R.VENKATARAMAN Microsoft Excel Programming 6 28th Dec 2005 06:43 PM
VBA - .End(xlDown) Ben Microsoft Excel Discussion 2 24th Feb 2004 10:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:30 PM.