Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 176
Default autofill with dynamic range

Anita,

To fill to match the column to the left, select the cell (either in Excel or in Code), then

ActiveCell.AutoFill Destination:=Range _
(ActiveCell, ActiveCell.Offset(0, -1).End(xlDown)(1, 2))


HTH,
Bernie
Excel MVP


"a" wrote in message ink.net...
Can anybody help me with an autofill with a dynamic range.

A long time ago Tom Ogilvy gave me this code so that I could copy a
formula down to the bottom of a column

I was hoping that I could use it to use the autofill - but I have no
idea how to do that.


Intersect(Range(ActiveCell, _
Cells(Rows.Count, ActiveCell.Column)), _
ActiveCell.CurrentRegion).FillDown

I have to do an autofill for 8 columns and do a sort after each and so
any help with the autofill on a dynamic range would be great.

As always - thanks in advance,
Anita



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 Autofill Peter Langdon Excel Discussion (Misc queries) 4 February 12th 09 01:56 PM
Dynamic range for autofill macro Jim G Excel Discussion (Misc queries) 2 April 23rd 07 05:46 AM
autofill a column alongside a range - how ? tonto57 Excel Discussion (Misc queries) 4 March 21st 06 12:11 PM
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
autofill with dynamic range again a Excel Programming 0 September 16th 03 12:26 PM


All times are GMT +1. The time now is 11:44 AM.

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"