Re: Selecting The Last Row

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hey James,

My data starts not in A2 but in A<LastRow>.

It looks like Bob's solution might be a bit better for what I am
trying to do, which is add two more conditions without using CFPlus to
change those few rows that need them.

Thanks for the assistance

-Minitman


On 19 Jul 2005 20:56:44 -0700, james.billy@xxxxxxxxx wrote:

>Hi,
>
>You could do something like setting the last row to a variable and then
>using that. For example:
>
>Endrow = Range("A65536").end(xlup).row
>Range("A2:W" & Endrow).Select
>
>Another way to do it is to select the current region for example:
>
>Range("A2").CurrentRegion.select
>
>The current region is the same as the short cut key ctrl + *.
>
>Both of the examples assume your data starts in cell A2.
>
>Any problems then give me a shout.
>
>James

.



Relevant Pages

  • Re: Selecting The Last Row
    ... Both of the examples assume your data starts in cell A2. ... Any problems then give me a shout. ... James ... Prev by Date: ...
    (microsoft.public.excel.programming)
  • WTB: NARC PCB
    ... shout with a price ... James ... Prev by Date: ...
    (rec.games.video.arcade.collecting)
  • Dates
    ... James ... >I have two cells with a data in each cell. ... >formula that I could put in a third cell that determines ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Re: form cell question in Ver2000
    ... James wrote: ... >> cell. ... >> Be aware that if you change the hyperlink, then this formula cell won't change ... >> until your workbook calculates. ...
    (microsoft.public.excel)
  • Re: How to match data in worksheet same as in Print Preview?
    ... Once again many thanks James. ... spreadsheet and type information into the cells as I ... For example in a cell: I type a company name that is say 5 words long. ... How can I put the data into the cells on my worksheet without ...
    (microsoft.public.excel.misc)