ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Excel Filldown problem (https://www.excelbanter.com/excel-programming/339278-excel-filldown-problem.html)

phil

Excel Filldown problem
 
Hi,

I know this is most likely pretty easy, but it's killing me! Using VBA, I
need to copy the formulas in Cells AA8, AB8 & AC8 all the way to the bottm of
there respective columns as long as there's data in cell "D" of the previous
row. Any help would be much appreciated.

Thanks


Jim Rech

Excel Filldown problem
 
as long as there's data in cell "D" of the previous row.

Huh? Maybe you can rephrase.

--
Jim
"Phil" wrote in message
...
| Hi,
|
| I know this is most likely pretty easy, but it's killing me! Using VBA, I
| need to copy the formulas in Cells AA8, AB8 & AC8 all the way to the bottm
of
| there respective columns as long as there's data in cell "D" of the
previous
| row. Any help would be much appreciated.
|
| Thanks
|



Tom Ogilvy

Excel Filldown problem
 
One possible interpretation:

set rng = Range(Cells(8,"D"),Cells(rows.count,"D").End(xlup) )
rng.offset(0,26).Formula = Range("AA8").Formula
rng.offset(0,27).Formula = Range("AB8").Formula
rng.offset(0,28).Formula = Range("AC8").Formula


"Phil" wrote in message
...
Hi,

I know this is most likely pretty easy, but it's killing me! Using VBA, I
need to copy the formulas in Cells AA8, AB8 & AC8 all the way to the bottm

of
there respective columns as long as there's data in cell "D" of the

previous
row. Any help would be much appreciated.

Thanks




phil

Excel Filldown problem
 
Hi,

Thanks Tom, that work great!

Phil




All times are GMT +1. The time now is 02:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com