LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 92
Default VBA and range addressing

When I want to address a range of cells I have been using a formula such as
the following:
Selection.AutoFill Destination:=Range.Cells("W2:W6475"), Type:=xlFillDefault
This works quite well when the length is fixed or doesn't change very much,
but I have a situation where the range varies dramatically and my thought
was to use the following :
Selection.AutoFill Destination:=Range.Cells(2,26:Limit,26),
Type:=xlFillDefault
where "limit" was the last row count and it, of course, failed.

Is there a simple way of doing this?

Thanks,
Craig


 
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
External addressing C Brandt Excel Discussion (Misc queries) 0 March 7th 07 05:15 PM
addressing in formulas Darin Excel Discussion (Misc queries) 2 February 9th 07 12:56 PM
Addressing Techniques virendra Excel Discussion (Misc queries) 2 December 27th 06 07:35 AM
Indirect Addressing Kanga 85 Excel Discussion (Misc queries) 3 December 5th 05 04:03 AM
VBA Cell Addressing Bill Martin -- (Remove NOSPAM from address) Excel Discussion (Misc queries) 5 March 16th 05 09:51 PM


All times are GMT +1. The time now is 12:05 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"