Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default filldown with formula

Hello,

i have the following code and it works, however it does not filldown the
formula.
It fillsdown the result of the formula only. I need it to filldown the
formula from the
original activecell.

thanks in advance for any help.

Set c = ActiveCell
mc = Application.Count(Range(c.Offset(0, -1), c.Offset(0,
-1).End(xlDown)))
MsgBox mc
c.Offset(0, 0).Resize(mc) = c.Offset(0)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default filldown with formula

Hello

Using FillDown, this should do it:

LastRow = ActiveCell.Offset(0, -1).End(xlDown).Row
Col = ActiveCell.Column
FormulaRow = ActiveCell.Row
Range(Cells(FormulaRow, Col), Cells(LastRow, Col)).FillDown

Regards,
Per

"Peruanos72" skrev i meddelelsen
...
Hello,

i have the following code and it works, however it does not filldown the
formula.
It fillsdown the result of the formula only. I need it to filldown the
formula from the
original activecell.

thanks in advance for any help.

Set c = ActiveCell
mc = Application.Count(Range(c.Offset(0, -1), c.Offset(0,
-1).End(xlDown)))
MsgBox mc
c.Offset(0, 0).Resize(mc) = c.Offset(0)


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 58
Default filldown with formula

Thanks Per Jessen. The code worked perfectly and is very clean.

"Per Jessen" wrote:

Hello

Using FillDown, this should do it:

LastRow = ActiveCell.Offset(0, -1).End(xlDown).Row
Col = ActiveCell.Column
FormulaRow = ActiveCell.Row
Range(Cells(FormulaRow, Col), Cells(LastRow, Col)).FillDown

Regards,
Per

"Peruanos72" skrev i meddelelsen
...
Hello,

i have the following code and it works, however it does not filldown the
formula.
It fillsdown the result of the formula only. I need it to filldown the
formula from the
original activecell.

thanks in advance for any help.

Set c = ActiveCell
mc = Application.Count(Range(c.Offset(0, -1), c.Offset(0,
-1).End(xlDown)))
MsgBox mc
c.Offset(0, 0).Resize(mc) = c.Offset(0)



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
Filldown Formula KWhamill Excel Programming 3 July 16th 08 08:30 PM
Filldown? & Cmb? Jennifer Excel Programming 1 May 16th 06 04:28 AM
Filldown Formula Carlie[_7_] Excel Programming 1 April 19th 06 11:59 PM
Macro Filldown only with Formula Ben Noall Excel Programming 1 April 6th 06 03:31 PM
FillDown Mike Fogleman Excel Programming 2 November 18th 03 10:46 PM


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