Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 65
Default Dynamic Range

I have a dynamic range which i use

Range("A3").End(xlDown).Offset(-1, 0).Select

to find the last cell with data in.

Then i use ActiveCell.Resize(1, 12).Select to select across to column L

What i can't seem to do is select up from ActiveCell in this case A363 (this
is dynamic) to L363 to A3:L3 (this range is then required to be copied)

Any help would be appreciated

Thanks in advance

Arnie

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,420
Default Dynamic Range

How about

Range(ActiveCell, ActiveCell.End(xlUp)).Resize(,12)

--
__________________________________
HTH

Bob

"Arnie" wrote in message
...
I have a dynamic range which i use

Range("A3").End(xlDown).Offset(-1, 0).Select

to find the last cell with data in.

Then i use ActiveCell.Resize(1, 12).Select to select across to column L

What i can't seem to do is select up from ActiveCell in this case A363
(this
is dynamic) to L363 to A3:L3 (this range is then required to be copied)

Any help would be appreciated

Thanks in advance

Arnie



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,533
Default Dynamic Range

Hi Arnie

Try this:

FirstCell = "L3"
LastCell = Range("A3").End(xlDown).Offset(-1, 0).Address
Range(FirstCell, LastCell).Copy

Regards,
Per

"Arnie" skrev i meddelelsen
...
I have a dynamic range which i use

Range("A3").End(xlDown).Offset(-1, 0).Select

to find the last cell with data in.

Then i use ActiveCell.Resize(1, 12).Select to select across to column L

What i can't seem to do is select up from ActiveCell in this case A363
(this
is dynamic) to L363 to A3:L3 (this range is then required to be copied)

Any help would be appreciated

Thanks in advance

Arnie


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 65
Default Dynamic Range

Thanks for that i am posting a new question if you could help

"Bob Phillips" wrote:

How about

Range(ActiveCell, ActiveCell.End(xlUp)).Resize(,12)

--
__________________________________
HTH

Bob

"Arnie" wrote in message
...
I have a dynamic range which i use

Range("A3").End(xlDown).Offset(-1, 0).Select

to find the last cell with data in.

Then i use ActiveCell.Resize(1, 12).Select to select across to column L

What i can't seem to do is select up from ActiveCell in this case A363
(this
is dynamic) to L363 to A3:L3 (this range is then required to be copied)

Any help would be appreciated

Thanks in advance

Arnie




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
Dynamic Range Dave Excel Worksheet Functions 1 April 8th 08 04:21 AM
Dynamic Range tiptoe Charts and Charting in Excel 0 February 19th 08 03:28 PM
Dynamic Range Sandy Excel Worksheet Functions 3 August 26th 07 04:23 PM
Dynamic Range KevinD Charts and Charting in Excel 1 May 7th 07 12:07 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM


All times are GMT +1. The time now is 10:28 PM.

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"