LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Macro Filldown only with Formula

Hi,

A new at the macro programming and am trying to produce a macro that
fillsdown formula on my spreadsheet but keeps the formatting. This is the
code that I have currently but it does not keep the format of the cells.

ActiveSheet.Range("V7").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[-20]:RC[-2])"
ActiveSheet.Range("V7:V10").Select
Selection.FillDown
ActiveSheet.Range("V31").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[-20]:RC[-2])"
ActiveSheet.Range("V31:V39").Select
Selection.FillDown

Any help would be greatly appreciated.

Thanks,

Ben
 
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
Macro filldown SJC Excel Worksheet Functions 0 June 12th 08 06:31 PM
FillDown Macro Nick Junod Excel Worksheet Functions 3 February 6th 06 10:10 PM
filldown macro BorisS Excel Programming 1 September 1st 05 08:47 AM
Macro Filldown Hirsch Excel Worksheet Functions 4 June 6th 05 06:25 PM
FillDown Mike Fogleman Excel Programming 2 November 18th 03 10:46 PM


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